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

[PATCH] t1006-cat-file.sh: typo

From
LWLea Wiemann <lewiemann@gmail.com>
Date
Jun 8, 2008, 23:03 UTC
Message-ID
<1212966193-27969-1-git-send-email-LeWiemann@gmail.com>

Previously timestamps were removed unconditionally (though this didn't seem to break this test). Now they are only removed if $no_ts is non-empty.

Signed-off-by: Lea Wiemann <LeWiemann@gmail.com>
---
The no_ts feature doesn't seem to be particularly important (it still
works if you switch it always on), but for now I'll just fix it so
that it does what the author apparently intended.
 t/t1006-cat-file.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t1006-cat-file.sh b/t/t1006-cat-file.sh
index cb1fbe5..973aef7 100755
--- a/t/t1006-cat-file.sh
+++ b/t/t1006-cat-file.sh
@@ -74,7 +74,7 @@ $content"
     test -z "$content" ||
     test_expect_success "--batch output of $type is correct" '
 	expect="$(maybe_remove_timestamp "$batch_output" $no_ts)"
-	actual="$(maybe_remove_timestamp "$(echo $sha1 | git cat-file --batch)" no_ts)"
+	actual="$(maybe_remove_timestamp "$(echo $sha1 | git cat-file --batch)" $no_ts)"
         if test "z$expect" = "z$actual"
 	then
 		: happy
-- 
1.5.6.rc1.19.gec491.dirty
Message 1 of 1 in “t1006-cat-file.sh: typo”
  1. t1006-cat-file.sh: typoLea Wiemann, Jun 8, 2008

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.