From: Junio C Hamano Date: Fri, 1 Jun 2012 20:01:36 +0000 (-0700) Subject: Merge branch 'jk/ident-split-fix' into maint X-Git-Tag: v1.7.10.4~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e2d484c47a3445a288f4e45ee8365c912eebb26f?ds=inline;hp=-c Merge branch 'jk/ident-split-fix' into maint An author/committer name that is a single character was mishandled as an invalid name by mistake. By Jeff King * jk/ident-split-fix: fix off-by-one error in split_ident_line --- e2d484c47a3445a288f4e45ee8365c912eebb26f diff --combined t/t6006-rev-list-format.sh index a01d244502,244701e96e..f94f0c48e6 --- a/t/t6006-rev-list-format.sh +++ b/t/t6006-rev-list-format.sh @@@ -188,23 -188,23 +188,23 @@@ test_expect_success 'empty email' test_expect_success 'del LF before empty (1)' ' git show -s --pretty=format:"%s%n%-b%nThanks%n" HEAD^^ >actual && - test $(wc -l actual && - test $(wc -l actual && - test $(wc -l actual && - test $(wc -l test.txt && - test $(git rev-list --oneline HEAD | wc -l) -eq 5 && - test $(git rev-list --oneline --graph HEAD | wc -l) -eq 5 + test_line_count = 5 test.txt && + git rev-list --oneline --graph HEAD >testg.txt && + test_line_count = 5 testg.txt ' + test_expect_success 'single-character name is parsed correctly' ' + git commit --author="a " --allow-empty -m foo && + echo "a " >expect && + git log -1 --format="%an <%ae>" >actual && + test_cmp expect actual + ' + test_done