Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fsck: exit with non-zero status upon error from fsck_obj()
[gitweb.git]
/
builtin
/
fsck.c
diff --git
a/builtin/fsck.c
b/builtin/fsck.c
index 1affdd5e924c9e71605be603f253e34f6a995f36..8abe6440bd44a54d362d1d74cca48f710f8022f4 100644
(file)
--- a/
builtin/fsck.c
+++ b/
builtin/fsck.c
@@
-389,7
+389,8
@@
static void fsck_sha1_list(void)
unsigned char *sha1 = entry->sha1;
sha1_list.entry[i] = NULL;
- fsck_sha1(sha1);
+ if (fsck_sha1(sha1))
+ errors_found |= ERROR_OBJECT;
free(entry);
}
sha1_list.nr = 0;