X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=fsck.c;h=89278c1459d36a3e2b718661ca71483522f587fd;hb=24be49522f00767718e84468d46ccb22cc7734d7;hp=511b82cba9977c14d6dcba5efbd6d38591d3aacc;hpb=21590d5262f71b336926a9d2cec5b04b0aa6c4a0;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))