From f52d4a87bf3e0d3e5144e6df81bf4ec237f33465 Mon Sep 17 00:00:00 2001 From: Kirill Smelkov Date: Sat, 18 Sep 2010 13:58:52 +0400 Subject: [PATCH] taskd/clone: Store git-svn refs under svn-origin remote Previously git-svn stored everything right under refs/remotes/ , and now I'm putting svn-mirrored refs under refs/remotes/svn-origin/ . This makes sense, since it helps debugging svn-mirroring problems - e.g. at present we don't forward to visible git namespace svn branches at all. Cc: Andrew Steinborn Cc: Miklos Vajna --- taskd/clone.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/taskd/clone.sh b/taskd/clone.sh index 9a6409c..8d56e1e 100755 --- a/taskd/clone.sh +++ b/taskd/clone.sh @@ -25,13 +25,13 @@ case "$url" in svn://* | svn+http://* | svn+https://*) # we just remote svn+ here, so svn+http://... becomes http://... svnurl="${url#svn+}" - GIT_DIR=. git svn init -s "$svnurl" + GIT_DIR=. git svn init -s --prefix=svn-origin/ "$svnurl" GIT_DIR=. git svn fetch # Neat Trick suggested by Miklos Vajna GIT_DIR=. git config remote.origin.url . - GIT_DIR=. git config remote.origin.fetch '+refs/remotes/heads/*:refs/heads/*' - GIT_DIR=. git config --add remote.origin.fetch '+refs/remotes/trunk:refs/heads/master' - GIT_DIR=. git config --add remote.origin.fetch '+refs/remotes/tags/*:refs/tags/*' + GIT_DIR=. git config remote.origin.fetch '+refs/remotes/svn-origin/heads/*:refs/heads/*' + GIT_DIR=. git config --add remote.origin.fetch '+refs/remotes/svn-origin/trunk:refs/heads/master' + GIT_DIR=. git config --add remote.origin.fetch '+refs/remotes/svn-origin/tags/*:refs/tags/*' GIT_DIR=. git fetch ;; darcs://*) -- 2.11.4.GIT