Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_loose_object_info: return error for corrupted objects
[gitweb.git]
/
t
/
t1060-object-corruption.sh
diff --git
a/t/t1060-object-corruption.sh
b/t/t1060-object-corruption.sh
index 3f8705139d74e8e358ae60cabe5d1cd92d316489..3a88d79c5fe95d78e7669d4b04f8602b753ed7a7 100755
(executable)
--- a/
t/t1060-object-corruption.sh
+++ b/
t/t1060-object-corruption.sh
@@
-53,6
+53,13
@@
test_expect_success 'streaming a corrupt blob fails' '
)
'
+test_expect_success 'getting type of a corrupt blob fails' '
+ (
+ cd bit-error &&
+ test_must_fail git cat-file -s HEAD:content.t
+ )
+'
+
test_expect_success 'read-tree -u detects bit-errors in blobs' '
(
cd bit-error &&