Run the gitweb.cgi make for the all target
[girocco.git] / toolbox / updatecheck.sh
blobab8c41a88ed363cbc92df20686a5f3e189853901
1 #!/bin/bash
3 # Repack in reverse order, so that forked repositories get repacked first.
4 # That prevents objects from missing, since repack -l will automagically
5 # put the now-going-away objects into the forked repository's object store.
7 cd /srv/git
8 find . -name base_url | cut -c 3- | sed -e 's/\/base_url$//' |
9 while read dir; do
10 echo "* $dir" >&2
11 if [ -e "$dir"/.nofetch ]; then
12 # echo "+l `date` $dir"
13 # (cd "$dir/objects" && [ "$(ls ?? 2>/dev/null)" ] && GIT_DIR=".." git repack -A -d -q)
14 # GIT_DIR="$dir" git update-server-info
15 # echo "-l `date` $dir"
17 else
18 echo "+r `date` $dir"
19 /home/repo/repomgr/jobd/update.sh "${dir%.git}"
20 echo "-r `date` $dir"
22 done 2>&1