diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-03-21 22:53:36 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-21 22:53:36 -0700 |
commit | 2990034f1ed2c3d85d23d5611a1f04d317f785ac (patch) | |
tree | b279df7a87a679a74c942f1c32d42681f9317f4b /t | |
parent | bf0fe35c938ac9f03d1369600b0c76e428a57507 (diff) | |
parent | 2c626e5fa8a46f647b88fb32d7b28d573e8631bf (diff) | |
download | git-2990034f1ed2c3d85d23d5611a1f04d317f785ac.tar.gz git-2990034f1ed2c3d85d23d5611a1f04d317f785ac.tar.xz |
Merge branch 'jc/maint-1.6.0-pack-directory' into maint-1.6.1
* jc/maint-1.6.0-pack-directory:
Fix odb_mkstemp() on AIX
Make sure objects/pack exists before creating a new pack
Conflicts:
wrapper.c
Diffstat (limited to 't')
-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 04522857a..ccfc64c6e 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 \ |