summaryrefslogtreecommitdiff
path: root/t/t9110-git-svn-use-svm-props.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-05-13 09:58:14 -0700
committerJunio C Hamano <junkio@cox.net>2007-05-13 12:10:43 -0700
commit4a1bb4c3f87f355dd52fcd0babcbd005d59d7ed6 (patch)
tree7ec45387787a384d1cc1383de20a4b7031a639e0 /t/t9110-git-svn-use-svm-props.sh
parent4c03c3eb4e31c2d1f88ca0c7106c647a246e81ff (diff)
downloadgit-4a1bb4c3f87f355dd52fcd0babcbd005d59d7ed6.tar.gz
git-svn: don't attempt to minimize URLs by default
For tracking branches and tags, git-svn prefers to connect to the root of the repository or at least the level that houses branches and tags as well as trunk. However, users that are accustomed to tracking a single directory have no use for this feature. As pointed out by Junio, users may not have permissions to connect to connect to a higher-level path in the repository. While the current minimize_url() function detects lack of permissions to certain paths _after_ successful logins, it cannot effectively determine if it is trying to access a login-only portion of a repo when the user expects to connect to a part where anonymous access is allowed. For people used to the git-svnimport switches of --trunk, --tags, --branches, they'll already pass the repository root (or root+subdirectory), so minimize URL isn't of too much use to them, either. For people *not* used to git-svnimport, git-svn also supports: git svn init --minimize-url \ --trunk http://repository-root/foo/trunk \ --branches http://repository-root/foo/branches \ --tags http://repository-root/foo/tags And this is where the new --minimize-url command-line switch comes in to allow for this behavior to continue working.
Diffstat (limited to 't/t9110-git-svn-use-svm-props.sh')
-rwxr-xr-xt/t9110-git-svn-use-svm-props.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/t9110-git-svn-use-svm-props.sh b/t/t9110-git-svn-use-svm-props.sh
index 9db0d8fd8d..59e17f2663 100755
--- a/t/t9110-git-svn-use-svm-props.sh
+++ b/t/t9110-git-svn-use-svm-props.sh
@@ -9,9 +9,10 @@ test_description='git-svn useSvmProps test'
test_expect_success 'load svm repo' "
svnadmin load -q $rawsvnrepo < ../t9110/svm.dump &&
- git-svn init -R arr -i bar $svnrepo/mirror/arr &&
- git-svn init -R argh -i dir $svnrepo/mirror/argh &&
- git-svn init -R argh -i e $svnrepo/mirror/argh/a/b/c/d/e &&
+ git-svn init --minimize-url -R arr -i bar $svnrepo/mirror/arr &&
+ git-svn init --minimize-url -R argh -i dir $svnrepo/mirror/argh &&
+ git-svn init --minimize-url -R argh -i e \
+ $svnrepo/mirror/argh/a/b/c/d/e &&
git-config svn.useSvmProps true &&
git-svn fetch --all
"