diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-19 13:49:00 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-19 14:07:24 -0800 |
commit | a5b80d92632a2d76325d4b6e6161022171a9fee4 (patch) | |
tree | e225a55790c2d58084f5e2d8a8b7121af95525d7 /t/t9146-git-svn-empty-dirs.sh | |
parent | 94058a90cf3e10122037cd80ea48d3d52be5efd9 (diff) | |
download | git-a5b80d92632a2d76325d4b6e6161022171a9fee4.tar.gz |
git svn: make empty directory creation gc-aware
The "git svn gc" command creates and appends to unhandled.log.gz
files which should be parsed before the uncompressed
unhandled.log files.
Reported-by: Robert Zeh
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 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/t/t9146-git-svn-empty-dirs.sh b/t/t9146-git-svn-empty-dirs.sh index 9b8d0463fa..3f2d719827 100755 --- a/t/t9146-git-svn-empty-dirs.sh +++ b/t/t9146-git-svn-empty-dirs.sh @@ -114,5 +114,29 @@ test_expect_success 'removed top-level directory does not exist' ' test ! -e removed/d ' +unhandled=.git/svn/refs/remotes/git-svn/unhandled.log +test_expect_success 'git svn gc-ed files work' ' + ( + cd removed && + git svn gc && + : Compress::Zlib may not be available && + if test -f "$unhandled".gz + then + svn mkdir -m gz "$svnrepo"/gz && + git reset --hard $(git rev-list HEAD | tail -1) && + git svn rebase && + test -f "$unhandled".gz && + test -f "$unhandled" && + for i in a b c "weird file name" gz "! !" + do + if ! test -d "$i" + then + echo >&2 "$i does not exist" + exit 1 + fi + done + fi + ) +' test_done |