diff options
author | Junio C Hamano <junkio@cox.net> | 2007-03-05 00:22:06 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-05 00:55:19 -0800 |
commit | e2b4f63512357d83f1f11bafadb22063e5d56621 (patch) | |
tree | 9c928aa80c1e3c565f8ee14a9074dea38efeba46 /builtin-update-index.c | |
parent | unpack_sha1_file(): detect corrupt loose object files. (diff) | |
download | tgif-e2b4f63512357d83f1f11bafadb22063e5d56621.tar.xz |
fsck: exit with non-zero status upon errors
git-fsck always exited with status 0, which was a bit sloppy.
This makes it exit with a non-zero status when errors are
found. The error code is an OR'ed result of:
1 if corrupted objects are found.
2 if objects that are ought to be reachable are missing or corrupt.
For example, it would exit with 1 in a repository with an
unreachable corrupt object. If a tree object of the HEAD commit
is corrupt, you would get 3.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-update-index.c')
0 files changed, 0 insertions, 0 deletions