git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix t5300-pack-object.sh
@ 2007-03-16 17:37 Nicolas Pitre
  0 siblings, 0 replies; only message in thread
From: Nicolas Pitre @ 2007-03-16 17:37 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

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>

---

diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh
index f511547..17befde 100755
--- a/t/t5300-pack-object.sh
+++ b/t/t5300-pack-object.sh
@@ -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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-16 17:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16 17:37 [PATCH] fix t5300-pack-object.sh Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).