[PATCH (girocco) 1/3] taskd/clone: Store git-svn refs under svn-origin remote
- From
Kirill Smelkov <kirr@landau.phys.spbu.ru>
- Date
- Sep 18, 2010, 09:58 UTC
- Message-ID
- <4ade10555225aa1bfeb8f3a3ba89580d1aeae99c.1284803429.git.kirr@landau.phys.spbu.ru>
- In-Reply-To
- <cover.1284803429.git.kirr@landau.phys.spbu.ru>
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 <g33kdyoo@gmail.com> Cc: Miklos Vajna <vmiklos@frugalware.org> --- taskd/clone.sh | 8 ++++---- 1 files 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://*)
-- 1.7.3.rc2.1.g63647