svnurl="${url#svn+}"
if [ -f "$cfg_reporoot/$projdir/.new_clone" ]; then
echo "[$proj] initial git-svn setup"
- git --git-dir . --bare init --shared=true
+ git --git-dir . --bare init
git --git-dir . svn init -s --prefix=svn-origin/ "$svnurl"
# have git-svn store branches under svn-origin/heads/* not svn-origin/*
# FIXME: may need to do similar when new branches are added
rm -f "$cfg_reporoot/$projdir/.new_clone"
fi
echo "[$proj] fetching new commits from upstream"
+ git --git-dir . svn fetch
git --git-dir . fetch
;;
git update-server-info
trap "" EXIT
rm .clone_in_progress
-echo "[$proj] clone updated. See $cfg_gitweburl/$projdir"
+echo "[$proj] clone updated. See $cfg_gitweburl/?p=mirrors/$projdir;a=summary"