diff options
author | Jeff King <peff@peff.net> | 2023-01-18 15:41:56 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-01-18 12:59:44 -0800 |
commit | 34959d80db602b7d6893c9e2dfa81d78fd16f702 (patch) | |
tree | 1278e4d20cc2794c7ad330ec0bf6046566207741 /t/t5504-fetch-receive-strict.sh | |
parent | ad5dfeac040c16057a23f341408d229656e42ab4 (diff) | |
download | git-34959d80db602b7d6893c9e2dfa81d78fd16f702.tar.gz |
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/t5504-fetch-receive-strict.sh')
-rwxr-xr-x | t/t5504-fetch-receive-strict.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5504-fetch-receive-strict.sh b/t/t5504-fetch-receive-strict.sh index ac4099ca89..88d3c56750 100755 --- a/t/t5504-fetch-receive-strict.sh +++ b/t/t5504-fetch-receive-strict.sh @@ -138,7 +138,7 @@ This commit object intentionally broken EOF test_expect_success 'setup bogus commit' ' - commit="$(git hash-object -t commit -w --stdin <bogus-commit)" + commit="$(git hash-object --literally -t commit -w --stdin <bogus-commit)" ' test_expect_success 'fsck with no skipList input' ' |