[PATCH (girocco) 1/3] taskd/clone: Store git-svn refs under svn-origin remote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Cc: Miklos Vajna <vmiklos@xxxxxxxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]