Files
git/Documentation
Dmitry Ivankov 4b4963c0e1 fast-import: check committer name more strictly
The documentation declares following identity format:
(<name> SP)? LT <email> GT
where name is any string without LF and LT characters.
But fast-import just accepts any string up to first GT
instead of checking the whole format, and moreover just
writes it as is to the commit object.

git-fsck checks for [^<\n]* <[^<>\n]*> format. Note that the
space is mandatory. And the space quirk is already handled via
extending the string to the left when needed.

Modify fast-import input identity format to a slightly stricter
one - deny LF, LT and GT in both <name> and <email>. And check
for it.

This is stricter then git-fsck as fsck accepts "Name> <email>"
currently, but soon fsck check will be adjusted likewise.

Signed-off-by: Dmitry Ivankov <divanorama@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-08-11 12:21:03 -07:00
..
2011-06-26 12:41:16 -07:00
2011-08-08 09:30:12 -07:00
2011-03-22 14:56:13 -07:00
2011-04-14 12:26:45 -07:00
2011-05-09 16:29:33 -07:00
2011-04-28 14:11:39 -07:00
2011-05-19 10:55:54 -07:00
2011-03-11 10:59:16 -05:00
2011-03-28 14:17:17 -07:00
2011-08-01 14:44:24 -07:00
2010-07-05 13:39:02 -07:00
2010-07-20 16:59:17 -07:00