]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/fsck.c
fsck: exit with non-zero when problems are found
authorJunio C Hamano <gitster@pobox.com>
Wed, 23 Sep 2015 20:46:39 +0000 (13:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Sep 2015 21:29:28 +0000 (14:29 -0700)
commit122f76f574ce260429bfbd11251eed15039e3469
tree4d24484a48aa8af0be762c2fa22cd366bfd1496c
parent5455ee0573a22bb793a7083d593ae1ace909cd4c
fsck: exit with non-zero when problems are found

After finding some problems (e.g. a ref refs/heads/X points at an
object that is not a commit) and issuing an error message, the
program failed to signal the fact that it found an error by a
non-zero exit status.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c
t/t1450-fsck.sh