]> Pileus Git - ~andy/git/commitdiff
Merge branch 'jk/ident-split-fix'
authorJunio C Hamano <gitster@pobox.com>
Fri, 25 May 2012 19:05:26 +0000 (12:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 May 2012 19:05:26 +0000 (12:05 -0700)
An author/committer name that is a single character was mishandled as an
invalid name by mistake.

1  2 
t/t6006-rev-list-format.sh

index a01d2445022ecb82fe0e31739527339fa02e44a5,244701e96e3ba6669dd52784245f58c6d23386f7..f94f0c48e6337f6bd718b4fc6859a52411e09326
@@@ -278,9 -278,15 +278,16 @@@ test_expect_success 'oneline with empt
        git commit -m "dummy" --allow-empty &&
        git filter-branch --msg-filter "sed -e s/dummy//" HEAD^^.. &&
        git rev-list --oneline HEAD >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 <a@example.com>" --allow-empty -m foo &&
+       echo "a <a@example.com>" >expect &&
+       git log -1 --format="%an <%ae>" >actual &&
+       test_cmp expect actual
+ '
  test_done