mktag.c: tweak validation of tagger field and adjust test script
commitba26ab99d4c6c6a8f939f44cf2f2c47f6fd4f0a1
authorBrandon Casey <casey@nrlssc.navy.mil>
Mon, 31 Mar 2008 23:25:23 +0000 (31 18:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Apr 2008 05:43:34 +0000 (31 22:43 -0700)
treec26a719dd5185db40ab4e99fa7a2a25c333eeb2f
parente0aaf781f656671694a0aa04d8a665bd4d7956e6
mktag.c: tweak validation of tagger field and adjust test script

Update the verify_tag() function to remove an unnecessary test, and add
additional check for angle brackets in the name and email field, and
spaces in the email field. The timestamp and timezone sections are made
more straight forward by using strspn().

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mktag.c
t/t3800-mktag.sh