fsck-cache: warn about missing commit dates
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 24 Apr 2005 23:20:53 +0000 (16:20 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 24 Apr 2005 23:20:53 +0000 (16:20 -0700)
Now that we have hopefully converted all old archives, we
can consider it an error.

fsck-cache.c

index 985adb6..e3c41d4 100644 (file)
@@ -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;
 }