threads / patch / 13867

patcht1006-cat-file.sh: typo

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

## tl;dr

One message between Jun 8, 2008 and Jun 8, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Lea Wiemann· Jun 8, 2008, 23:03 UTC · lore

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(-)
Show changes to t/t1006-cat-file.sh +1 −1
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

← back to recent threads