diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-07 20:49:38 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-07 20:49:44 -0800 |
commit | f9ad77a739c0d012ee58b64eda2d7ec0d4e1df9d (patch) | |
tree | 6f2e3a4aa9ba13e5c74f2b838c4031721fc606e6 /t/t9146-git-svn-empty-dirs.sh | |
parent | 33f2a3108eeacbd937021470aa6e67c01ceec960 (diff) | |
download | git-f9ad77a739c0d012ee58b64eda2d7ec0d4e1df9d.tar.gz |
git svn: log removals of empty directories
This also adds a test case for:
"git svn: Don't create empty directories whose parents were deleted"
which was the reason we found this bug in the first place.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 't/t9146-git-svn-empty-dirs.sh')
-rwxr-xr-x | t/t9146-git-svn-empty-dirs.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t9146-git-svn-empty-dirs.sh b/t/t9146-git-svn-empty-dirs.sh index 70c52c1f97..9b8d0463fa 100755 --- a/t/t9146-git-svn-empty-dirs.sh +++ b/t/t9146-git-svn-empty-dirs.sh @@ -105,4 +105,14 @@ test_expect_success 'empty directories in trunk exist' ' ) ' +test_expect_success 'remove a top-level directory from svn' ' + svn_cmd rm -m "remove d" "$svnrepo"/d +' + +test_expect_success 'removed top-level directory does not exist' ' + git svn clone "$svnrepo" removed && + test ! -e removed/d + +' + test_done |