diff options
author | Jeff King <peff@peff.net> | 2023-01-18 23:41:56 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-01-18 23:59:44 +0300 |
commit | 34959d80db602b7d6893c9e2dfa81d78fd16f702 (patch) | |
tree | 1278e4d20cc2794c7ad330ec0bf6046566207741 /t/t6300-for-each-ref.sh | |
parent | ad5dfeac040c16057a23f341408d229656e42ab4 (diff) |
t: use hash-object --literally when created malformed objects
Many test scripts use hash-object to create malformed objects to see how
we handle the results in various commands. In some cases we already have
to use "hash-object --literally", because it does some rudimentary
quality checks. But let's use "--literally" more consistently to
future-proof these tests against hash-object learning to be more
careful.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6300-for-each-ref.sh')
-rwxr-xr-x | t/t6300-for-each-ref.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh index fa38b87441..b02a30d8e8 100755 --- a/t/t6300-for-each-ref.sh +++ b/t/t6300-for-each-ref.sh @@ -606,7 +606,7 @@ test_expect_success 'create tag without tagger' ' git tag -a -m "Broken tag" taggerless && git tag -f taggerless $(git cat-file tag taggerless | sed -e "/^tagger /d" | - git hash-object --stdin -w -t tag) + git hash-object --literally --stdin -w -t tag) ' test_atom refs/tags/taggerless type 'commit' |