author | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 26 May 2010 21:50:34 +0000 (16:50 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 28 May 2010 22:08:27 +0000 (15:08 -0700) | ||
commit | 0adc6a3d49a46436780b2dd636918c9840d82236 | |
tree | d4e8e57d71509d77bd624348b5b16153c35c29f4 | tree | snapshot |
parent | daae19224a05be9efb9a39c2a2c1c9a60fe906f1 | commit | diff |
fsck: fix bogus commit header check
daae1922 (fsck: check ident lines in commit objects, 2010-04-24)
taught fsck to expect commit objects to have the form
tree <object name>
<parents>
author <valid ident string>
committer <valid ident string>
log message
The check is overly strict: for example, it errors out with the
message “expected blank line” for perfectly valid commits with an
"encoding ISO-8859-1" line.
Later it might make sense to teach fsck about the rest of the header
and warn about unrecognized header lines, but for simplicity, let’s
accept arbitrary trailing lines for now.
Reported-by: Tuncer Ayaz <tuncer.ayaz@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daae1922 (fsck: check ident lines in commit objects, 2010-04-24)
taught fsck to expect commit objects to have the form
tree <object name>
<parents>
author <valid ident string>
committer <valid ident string>
log message
The check is overly strict: for example, it errors out with the
message “expected blank line” for perfectly valid commits with an
"encoding ISO-8859-1" line.
Later it might make sense to teach fsck about the rest of the header
and warn about unrecognized header lines, but for simplicity, let’s
accept arbitrary trailing lines for now.
Reported-by: Tuncer Ayaz <tuncer.ayaz@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c | diff | blob | history | |
t/t1450-fsck.sh | diff | blob | history |