diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-12-10 12:36:12 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-12-10 12:36:12 -0800 |
commit | b12a966eff3f66337f83c117dbab8fa0cca16e4b (patch) | |
tree | bccd3dd1065f53548c7931ea8c16ab5d2fd1d51d | |
parent | 9eb2449c35c779bedc61b259786b2548e51c8327 (diff) | |
parent | 8c24d832cdcc1602fb5c7e7295447f8043879bf7 (diff) | |
download | git-b12a966eff3f66337f83c117dbab8fa0cca16e4b.tar.gz git-b12a966eff3f66337f83c117dbab8fa0cca16e4b.tar.xz |
Merge branch 'dt/fsck-verify-pack-error'
The exit code of git-fsck didnot reflect some types of errors found
in packed objects, which has been corrected.
* dt/fsck-verify-pack-error:
verify_pack: do not ignore return value of verification function
-rw-r--r-- | pack-check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-check.c b/pack-check.c index 63a595c45..433bd86cc 100644 --- a/pack-check.c +++ b/pack-check.c @@ -126,7 +126,7 @@ static int verify_packfile(struct packed_git *p, sha1_to_hex(entries[i].sha1), p->pack_name); else if (fn) { int eaten = 0; - fn(entries[i].sha1, type, size, data, &eaten); + err |= fn(entries[i].sha1, type, size, data, &eaten); if (eaten) data = NULL; } |