summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fsck-cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fsck-cache.c b/fsck-cache.c
index 985adb68bb..e3c41d48e9 100644
--- a/fsck-cache.c
+++ b/fsck-cache.c
@@ -57,6 +57,8 @@ static int fsck_commit(unsigned char *sha1, void *data, unsigned long size)
return -1;
if (!commit->parents)
printf("root %s\n", sha1_to_hex(sha1));
+ if (!commit->date)
+ printf("bad commit date in %s\n", sha1_to_hex(sha1));
return 0;
}