summaryrefslogtreecommitdiff
path: root/t/t1450-fsck.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-05-08 15:37:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-08 15:37:25 (GMT)
commitea2dab1abbf14bfa7dd5299c9bb86d0f70aae019 (patch)
tree053b83263d2b4c5d5ab6b0b51a9dcfdb864808bf /t/t1450-fsck.sh
parent0b179f3175d1a152b1d22ce8352efda34b258ce2 (diff)
parent97dd512af7ce4afb4f638ef73b4770921c8ca3aa (diff)
downloadgit-ea2dab1abbf14bfa7dd5299c9bb86d0f70aae019.zip
git-ea2dab1abbf14bfa7dd5299c9bb86d0f70aae019.tar.gz
git-ea2dab1abbf14bfa7dd5299c9bb86d0f70aae019.tar.bz2
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/t1450-fsck.sh')
-rwxr-xr-xt/t1450-fsck.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh
index 49f08d5..0f268a3 100755
--- a/t/t1450-fsck.sh
+++ b/t/t1450-fsck.sh
@@ -256,10 +256,6 @@ test_expect_success 'unparseable tree object' '
test_i18ngrep ! "fatal: empty filename in tree entry" out
'
-hex2oct() {
- perl -ne 'printf "\\%03o", hex for /../g'
-}
-
test_expect_success 'tree entry with type mismatch' '
test_when_finished "remove_object \$blob" &&
test_when_finished "remove_object \$tree" &&