summaryrefslogtreecommitdiff
path: root/t/t9100-git-svn-basic.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-01-24 00:29:23 (GMT)
committerEric Wong <normalperson@yhbt.net>2007-02-23 08:57:09 (GMT)
commite6434f876097f196acbd9a806637d0f6076752fd (patch)
tree39915bf3419396fa5f56f853a551188b121a1601 /t/t9100-git-svn-basic.sh
parent9bf046372b370fba8958ba6ef9dc63b232d7637c (diff)
downloadgit-e6434f876097f196acbd9a806637d0f6076752fd.zip
git-e6434f876097f196acbd9a806637d0f6076752fd.tar.gz
git-e6434f876097f196acbd9a806637d0f6076752fd.tar.bz2
git-svn: 'init' attempts to connect to the repository root if possible
This allows connections to be used more efficiently and not require users to run 'git-svn migrate --minimize' for new repositories. Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 't/t9100-git-svn-basic.sh')
-rwxr-xr-xt/t9100-git-svn-basic.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/t/t9100-git-svn-basic.sh b/t/t9100-git-svn-basic.sh
index af61748..97798c4 100755
--- a/t/t9100-git-svn-basic.sh
+++ b/t/t9100-git-svn-basic.sh
@@ -220,10 +220,22 @@ test_expect_failure 'exit if remote refs are ambigious' "
bar:refs/remotes/git-svn &&
git-svn migrate
"
+
test_expect_failure 'exit if init-ing a would clobber a URL' "
+ svnadmin create ${PWD}/svnrepo2 &&
+ svn mkdir -m 'mkdir bar' ${svnrepo}2/bar &&
git-repo-config --unset svn-remote.git-svn.fetch \
'^bar:refs/remotes/git-svn$' &&
- git-svn init $svnrepo/bar
+ git-svn init ${svnrepo}2/bar
+ "
+
+test_expect_success \
+ 'init allows us to connect to another directory in the same repo' "
+ git-svn init -i bar $svnrepo/bar &&
+ git repo-config --get svn-remote.git-svn.fetch \
+ '^bar:refs/remotes/bar$' &&
+ git repo-config --get svn-remote.git-svn.fetch \
+ '^:refs/remotes/git-svn$'
"
test_done