X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=update-mirror;h=dde92db00ad28b459cf31d63b1238dc1778f1dce;hb=5a0964b8bfd750dd118a1b10736ff9541b61b2fd;hp=477b32a7bcf3284533e9c0504de3a9a7bbc80150;hpb=14decadc73f454548b43b46950b93bf7e2b158b0;p=git-utils.git diff --git a/update-mirror b/update-mirror index 477b32a..dde92db 100755 --- a/update-mirror +++ b/update-mirror @@ -38,7 +38,7 @@ case "$url" in 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 @@ -57,6 +57,7 @@ case "$url" in rm -f "$cfg_reporoot/$projdir/.new_clone" fi echo "[$proj] fetching new commits from upstream" + git --git-dir . svn fetch git --git-dir . fetch ;; @@ -98,4 +99,4 @@ esac 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"