t1006-cat-file.sh: typo
authorLea Wiemann <lewiemann@gmail.com>
Sun, 8 Jun 2008 23:03:13 +0000 (01:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jun 2008 20:31:23 +0000 (13:31 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1006-cat-file.sh
index cb1fbe5820723cbc39753fd652ec4fdafc94b988..973aef7a8e0949ea381626e5d3b49445f63423ef 100755 (executable)
@@ -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