diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-05-09 00:37:25 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-05-09 00:37:25 +0900 |
| commit | ea2dab1abbf14bfa7dd5299c9bb86d0f70aae019 (patch) | |
| tree | 053b83263d2b4c5d5ab6b0b51a9dcfdb864808bf /t/t1007-hash-object.sh | |
| parent | Merge branch 'nd/sha1-name-c-wo-the-repository' (diff) | |
| parent | rev-list: detect broken root trees (diff) | |
| download | git-ea2dab1abbf14bfa7dd5299c9bb86d0f70aae019.tar.gz git-ea2dab1abbf14bfa7dd5299c9bb86d0f70aae019.zip | |
Merge branch 'tb/unexpected'
Code tightening against a "wrong" object appearing where an object
of a different type is expected, instead of blindly assuming that
the connection between objects are correctly made.
* tb/unexpected:
rev-list: detect broken root trees
rev-list: let traversal die when --missing is not in use
get_commit_tree(): return NULL for broken tree
list-objects.c: handle unexpected non-tree entries
list-objects.c: handle unexpected non-blob entries
t: introduce tests for unexpected object types
t: move 'hex2oct' into test-lib-functions.sh
Diffstat (limited to 't/t1007-hash-object.sh')
| -rwxr-xr-x | t/t1007-hash-object.sh | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/t/t1007-hash-object.sh b/t/t1007-hash-object.sh index a37753047e..7099d33508 100755 --- a/t/t1007-hash-object.sh +++ b/t/t1007-hash-object.sh @@ -199,10 +199,6 @@ test_expect_success 'too-short tree' ' test_i18ngrep "too-short tree object" err ' -hex2oct() { - perl -ne 'printf "\\%03o", hex for /../g' -} - test_expect_success 'malformed mode in tree' ' hex_sha1=$(echo foo | git hash-object --stdin -w) && bin_sha1=$(echo $hex_sha1 | hex2oct) && |
