aboutsummaryrefslogtreecommitdiff
path: root/files/git-mass-update-server-info
blob: 53143cf6a1a3b26a8f4190f0c6873020afffdd41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#
# Run git-update-server-info on all repositories. 
#
# This is script is needed when servir repositories directly
# to dumb servers (eg. via HTTP).
#

REPOS="/var/git/repositories"

for repo in `ls $REPOS`; do
  ( cd $REPOS/$repo && su gitolite -c "git update-server-info" )
done