summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-24 23:20:53 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-24 23:20:53 (GMT)
commite6948b6d88c69a864e9c461911287c5cc5932a3b (patch)
tree648b1464afe31bf85116ca64734a8b8990f4e0da
parent3f053897b3445988309d0ae7378944783c34d152 (diff)
downloadgit-e6948b6d88c69a864e9c461911287c5cc5932a3b.zip
git-e6948b6d88c69a864e9c461911287c5cc5932a3b.tar.gz
git-e6948b6d88c69a864e9c461911287c5cc5932a3b.tar.bz2
fsck-cache: warn about missing commit dates
Now that we have hopefully converted all old archives, we can consider it an error.
-rw-r--r--fsck-cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fsck-cache.c b/fsck-cache.c
index 985adb6..e3c41d4 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;
}