18 |
|
|
19 |
ls -d */.git | sed 's#/.git##' | while read rep ; do |
ls -d */.git | sed 's#/.git##' | while read rep ; do |
20 |
echo "update $rep [git]" |
echo "update $rep [git]" |
21 |
cd $rep && git pull || ./update.sh || echo "FATAL ERROR!" |
pull="pull" |
22 |
|
if grep svn-remote $rep/.git/config ; then pull="svn fetch" ; fi |
23 |
|
cd $rep && git $pull || ./update.sh || echo "FATAL ERROR!" |
24 |
ln -sf `pwd`/.git /var/cache/git/$rep.git || echo "ERROR: can't update symlink to gitweb" |
ln -sf `pwd`/.git /var/cache/git/$rep.git || echo "ERROR: can't update symlink to gitweb" |
25 |
cd - |
cd - |
26 |
done |
done |