Skip to content

Commit e6948b6

Browse files
author
Linus Torvalds
committed
fsck-cache: warn about missing commit dates
Now that we have hopefully converted all old archives, we can consider it an error.
1 parent 3f05389 commit e6948b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fsck-cache.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ static int fsck_commit(unsigned char *sha1, void *data, unsigned long size)
5757
return -1;
5858
if (!commit->parents)
5959
printf("root %s\n", sha1_to_hex(sha1));
60+
if (!commit->date)
61+
printf("bad commit date in %s\n", sha1_to_hex(sha1));
6062
return 0;
6163
}
6264

0 commit comments

Comments
 (0)