aboutsummaryrefslogtreecommitdiff
path: root/t/t5302-pack-index.sh
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2008-10-20 21:17:07 -0400
committerJunio C Hamano <gitster@pobox.com>2008-10-21 13:20:03 -0700
commita672ea6ac5a1b876bc7adfe6534b16fa2a32c94b (patch)
tree703c03d42003536eab5db4b6e81647ceb86b13d8 /t/t5302-pack-index.sh
parent5610e3b0315d652d6b8e6535afe0e7e461c8a0a0 (diff)
downloadgit-a672ea6ac5a1b876bc7adfe6534b16fa2a32c94b.tar.gz
git-a672ea6ac5a1b876bc7adfe6534b16fa2a32c94b.tar.xz
rehabilitate 'git index-pack' inside the object store
Before commit d0b92a3f6e it was possible to run 'git index-pack' directly in the .git/objects/pack/ directory. Restore that ability. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5302-pack-index.sh')
-rwxr-xr-xt/t5302-pack-index.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5302-pack-index.sh b/t/t5302-pack-index.sh
index 6424db1f2..344ab25b8 100755
--- a/t/t5302-pack-index.sh
+++ b/t/t5302-pack-index.sh
@@ -177,4 +177,14 @@ test_expect_success \
".git/objects/pack/pack-${pack1}.pack" 2>&1) &&
echo "$err" | grep "CRC mismatch"'
+test_expect_success 'running index-pack in the object store' '
+ rm -f .git/objects/pack/* &&
+ cp test-1-${pack1}.pack .git/objects/pack/pack-${pack1}.pack &&
+ (
+ cd .git/objects/pack
+ git index-pack pack-${pack1}.pack
+ ) &&
+ test -f .git/objects/pack/pack-${pack1}.idx
+'
+
test_done