mirror of
https://github.com/git/git.git
synced 2024-11-01 06:47:52 +01:00
39111f6b7a
Commit dbc6c74d08
"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>
16 lines
394 B
Bash
Executable file
16 lines
394 B
Bash
Executable file
#!/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
|