diff options
author | Jeff King <peff@peff.net> | 2014-08-29 22:31:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-10 18:40:53 +0200 |
commit | 2e770fe47ef9c0b20bc687e37f3eb50f1bf919d0 (patch) | |
tree | 002f9ee6fb1a4262c9940e37830669da6fed9d70 /t/t4212-log-corrupt.sh | |
parent | Merge branch 'maint-1.8.5' into maint-1.9 (diff) | |
download | git-2e770fe47ef9c0b20bc687e37f3eb50f1bf919d0.tar.xz git-2e770fe47ef9c0b20bc687e37f3eb50f1bf919d0.zip |
fsck: exit with non-zero status upon error from fsck_obj()
Upon finding a corrupt loose object, we forgot to note the error to
signal it with the exit status of the entire process.
[jc: adjusted t1450 and added another test]
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-x | t/t4212-log-corrupt.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4212-log-corrupt.sh b/t/t4212-log-corrupt.sh index 58b792bf20..67bd8ec020 100755 --- a/t/t4212-log-corrupt.sh +++ b/t/t4212-log-corrupt.sh @@ -14,7 +14,7 @@ test_expect_success 'setup' ' ' test_expect_success 'fsck notices broken commit' ' - git fsck 2>actual && + test_must_fail git fsck 2>actual && test_i18ngrep invalid.author actual ' |