diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-02-25 14:48:30 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-25 14:50:05 -0800 |
commit | bb0cebd7d0ac9bf2ddf94fe5579603819c4a1fc7 (patch) | |
tree | 1fdfa7e92aa0290bacfb64d77aad894d9915785a /t/t5300-pack-object.sh | |
parent | 69707d616fd3acda6ecc47198edeaaa87f2cfcea (diff) | |
parent | 6e180cdcecbb3e828aa892925d7ef67abf81ad80 (diff) | |
download | git-bb0cebd7d0ac9bf2ddf94fe5579603819c4a1fc7.tar.gz |
Merge branch 'jc/maint-1.6.0-pack-directory'
* jc/maint-1.6.0-pack-directory:
Make sure objects/pack exists before creating a new pack
Diffstat (limited to 't/t5300-pack-object.sh')
-rwxr-xr-x | t/t5300-pack-object.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index 04522857ab..ccfc64c6ee 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -180,6 +180,23 @@ test_expect_success \ unset GIT_OBJECT_DIRECTORY +test_expect_success 'survive missing objects/pack directory' ' + ( + rm -fr missing-pack && + mkdir missing-pack && + cd missing-pack && + git init && + GOP=.git/objects/pack + rm -fr $GOP && + git index-pack --stdin --keep=test <../test-3-${packname_3}.pack && + test -f $GOP/pack-${packname_3}.pack && + test_cmp $GOP/pack-${packname_3}.pack ../test-3-${packname_3}.pack && + test -f $GOP/pack-${packname_3}.idx && + test_cmp $GOP/pack-${packname_3}.idx ../test-3-${packname_3}.idx && + test -f $GOP/pack-${packname_3}.keep + ) +' + test_expect_success \ 'verify pack' \ 'git verify-pack test-1-${packname_1}.idx \ |