diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-01-31 17:31:12 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-02-11 02:00:42 -0800 |
commit | 4c58a7111d9fb4f62ca041fc73e8aec0a2f9c800 (patch) | |
tree | 98e6180b27c1c00c169168842a2d72ecba41ba0f /t/t9131-git-svn-empty-symlink.sh | |
parent | 1b53a076fc3e3dc58e67971df18df0ce973a3ff9 (diff) | |
download | git-4c58a7111d9fb4f62ca041fc73e8aec0a2f9c800.tar.gz |
git-svn: allow disabling expensive broken symlink checks
Since dbc6c74d0858d77e61e092a48d467e725211f8e9, git-svn has had
an expensive check for broken symlinks that exist in some
repositories. This leads to a heavy performance hit on
repositories with many empty blobs that are not supposed to be
symlinks.
The workaround is enabled by default; and may be disabled via:
git config svn.brokenSymlinkWorkaround false
Reported by Markus Heidelberg.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 't/t9131-git-svn-empty-symlink.sh')
-rwxr-xr-x | t/t9131-git-svn-empty-symlink.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t9131-git-svn-empty-symlink.sh b/t/t9131-git-svn-empty-symlink.sh index 704a4f8574..20529a878c 100755 --- a/t/t9131-git-svn-empty-symlink.sh +++ b/t/t9131-git-svn-empty-symlink.sh @@ -87,4 +87,14 @@ test_expect_success '"bar" is an empty file' 'test -f x/bar && ! test -s x/bar' test_expect_success 'get "bar" => symlink fix from svn' \ '(cd x && git svn rebase)' test_expect_success '"bar" becomes a symlink' 'test -L x/bar' + + +test_expect_success 'clone using git svn' 'git svn clone -r1 "$svnrepo" y' +test_expect_success 'disable broken symlink workaround' \ + '(cd y && git config svn.brokenSymlinkWorkaround false)' +test_expect_success '"bar" is an empty file' 'test -f y/bar && ! test -s y/bar' +test_expect_success 'get "bar" => symlink fix from svn' \ + '(cd y && git svn rebase)' +test_expect_success '"bar" does not become a symlink' '! test -L y/bar' + test_done |