aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-01-11 17:09:26 -0800
committerEric Wong <normalperson@yhbt.net>2007-02-23 00:57:08 -0800
commite7db67e6f18495332c4d688d3291b05851526a6e (patch)
treeb0028cba2071bf23ca830c8efa30f64d049f6f79 /t
parent8164b6525ef6d95d4b656a8f4226f1758a611989 (diff)
downloadgit-e7db67e6f18495332c4d688d3291b05851526a6e.tar.gz
git-e7db67e6f18495332c4d688d3291b05851526a6e.tar.xz
git-svn: make multi-init capable of reusing the Ra connection
If a user specified a seperate URL and --tags/--branches as a sepearte URL, allow the Ra object (and therefore the connection) to be reused. We'll get rid of libsvn_ls_fullurl() since it was only used in one place. Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t9103-git-svn-graft-branches.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t9103-git-svn-graft-branches.sh b/t/t9103-git-svn-graft-branches.sh
index 183ae3b1c..8d946d2aa 100755
--- a/t/t9103-git-svn-graft-branches.sh
+++ b/t/t9103-git-svn-graft-branches.sh
@@ -26,6 +26,12 @@ test_expect_success 'initialize repo' "
git-svn multi-fetch
"
+test_expect_success 'multi-init set .git/config correctly' "
+ test '$svnrepo/trunk' = '`git repo-config --get svn.trunk`' &&
+ test '$svnrepo/branches' = '`git repo-config --get svn.branches`' &&
+ test '$svnrepo/tags' = '`git repo-config --get svn.tags`'
+ "
+
r1=`git-rev-list remotes/trunk | tail -n1`
r2=`git-rev-list remotes/tags/a | tail -n1`
r3=`git-rev-list remotes/a | tail -n1`