Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Gyllenberg <anton@iki.fi>2009-02-11 01:38:45 +0300
committerEric Wong <normalperson@yhbt.net>2009-02-11 13:02:04 +0300
commit39111f6b7aeb5a7bc57731a6c8f0c3b8178873c8 (patch)
tree43a18a50792967c02e31a1fd78cbdb1004d24a2e /t/t9135-git-svn-moved-branch-empty-file.sh
parent8841b37f2f5ce74359e150254dd138602eb418a7 (diff)
test case for regression caused by git-svn empty symlink fix
Commit dbc6c74d0858d77e61e092a48d467e725211f8e9 "git-svn: handle empty files marked as symlinks in SVN" caused a regression in an unusual case where a branch has been created in SVN, later deleted and then created again from another branch point and the original branch point had empty files not in the new branch. In some cases git svn fetch will then fail while trying to fetch the empty file from the wrong SVN revision. This adds a test case that reproduces the issue. [ew: added additional test to ensure file was created correctly made test file executable ] Signed-off-by: Anton Gyllenberg <anton@iki.fi> Acked-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 't/t9135-git-svn-moved-branch-empty-file.sh')
-rwxr-xr-xt/t9135-git-svn-moved-branch-empty-file.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t9135-git-svn-moved-branch-empty-file.sh b/t/t9135-git-svn-moved-branch-empty-file.sh
new file mode 100755
index 0000000000..03705fa4ce
--- /dev/null
+++ b/t/t9135-git-svn-moved-branch-empty-file.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+test_description='test moved svn branch with missing empty files'
+
+. ./lib-git-svn.sh
+test_expect_success 'load svn dumpfile' '
+ svnadmin load "$rawsvnrepo" < "${TEST_DIRECTORY}/t9135/svn.dump"
+ '
+
+test_expect_success 'clone using git svn' 'git svn clone -s "$svnrepo" x'
+
+test_expect_success 'test that b1 exists and is empty' '
+ (cd x && test -f b1 && ! test -s b1)
+ '
+
+test_done