git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] fix t5300-pack-object.sh

From
Nicolas Pitre <nico@cam.org>
Date
Mar 16, 2007, 17:37 UTC
Message-ID
<alpine.LFD.0.83.0703161329440.18328@xanadu.home>

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
Message 1 of 1 in “fix t5300-pack-object.sh”
  1. fix t5300-pack-object.shNicolas Pitre, Mar 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.