summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Eric Wong <normalperson@yhbt.net>2007-01-11 17:09:26 -0800
committerLibravatar Eric Wong <normalperson@yhbt.net>2007-02-23 00:57:08 -0800
commite7db67e6f18495332c4d688d3291b05851526a6e (patch)
treeb0028cba2071bf23ca830c8efa30f64d049f6f79 /t
parentgit-svn: convert multi-init over to using Git::SVN (diff)
downloadtgif-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 183ae3b1c2..8d946d2aa5 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`