X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=fsck.c;h=89278c1459d36a3e2b718661ca71483522f587fd;hb=b831deda174da7864ca5d529f53296af3f41ee18;hp=511b82cba9977c14d6dcba5efbd6d38591d3aacc;hpb=011c181cc656c8b3e48882729d1b6238e8c5c537;p=git.git diff --git a/fsck.c b/fsck.c index 511b82cba..89278c145 100644 --- a/fsck.c +++ b/fsck.c @@ -229,7 +229,7 @@ static int fsck_commit(struct commit *commit, fsck_error error_func) struct commit_graft *graft; int parents = 0; - if (!commit->date) + if (commit->date == ULONG_MAX) return error_func(&commit->object, FSCK_ERROR, "invalid author/committer line"); if (memcmp(buffer, "tree ", 5))