Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fsck: verify commit-graph
[gitweb.git]
/
t
/
t5318-commit-graph.sh
diff --git
a/t/t5318-commit-graph.sh
b/t/t5318-commit-graph.sh
index fed05e2f12a23511aabf85318036d70cdf903c33..a9e8c774d59bf73205326325e179aaee5c273bb2 100755
(executable)
--- a/
t/t5318-commit-graph.sh
+++ b/
t/t5318-commit-graph.sh
@@
-399,4
+399,12
@@
test_expect_success 'detect invalid checksum hash' '
"incorrect checksum"
'
+test_expect_success 'git fsck (checks commit-graph)' '
+ cd "$TRASH_DIRECTORY/full" &&
+ git fsck &&
+ corrupt_graph_and_verify $GRAPH_BYTE_FOOTER "\00" \
+ "incorrect checksum" &&
+ test_must_fail git fsck
+'
+
test_done