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