Code

[PATCH] fix t5300-pack-object.sh
authorNicolas Pitre <nico@cam.org>
Fri, 16 Mar 2007 17:37:42 +0000 (13:37 -0400)
committerJunio C Hamano <junkio@cox.net>
Sat, 17 Mar 2007 04:27:35 +0000 (21:27 -0700)
The 'use packed deltified objects' test was flawed as it failed to
remove the pack and index from the previous test, effectively preventing
the desired pack from being exercised as objects could be found in that
other pack instead.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t5300-pack-object.sh

index f51154745586b246ecb30caee3f2150441911e1d..17befde757439cedcee868bc050567e26a129da2 100755 (executable)
@@ -116,7 +116,7 @@ test_expect_success \
     'use packed deltified objects' \
     'GIT_OBJECT_DIRECTORY=.git2/objects &&
      export GIT_OBJECT_DIRECTORY &&
-     rm -f .git2/objects/pack/test-?.idx &&
+     rm .git2/objects/pack/test-* &&
      cp test-2-${packname_2}.pack test-2-${packname_2}.idx .git2/objects/pack && {
         git-diff-tree --root -p $commit &&
         while read object