]> oss.titaniummirror.com Git - git-utils.git/blobdiff - update-mirror
Subsequent svn updates still need to do svn fetch
[git-utils.git] / update-mirror
index 477b32a7bcf3284533e9c0504de3a9a7bbc80150..365676e00c0d006ab2724e0d9b55e85c96a12d32 100755 (executable)
@@ -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
     ;;