shortlog: match both "Author:" and "author" on stdin
[gitweb.git] / t / t4201-shortlog.sh
index 7600a3e3e8f4fab47abd68a29bb06defb6bbce02..82b23145149f059fda2bbae769a5c943efedfff2 100755 (executable)
@@ -120,6 +120,12 @@ test_expect_success !MINGW 'shortlog from non-git directory' '
        test_cmp expect out
 '
 
+test_expect_success !MINGW 'shortlog can read --format=raw output' '
+       git log --format=raw HEAD >log &&
+       GIT_DIR=non-existing git shortlog -w <log >out &&
+       test_cmp expect out
+'
+
 test_expect_success 'shortlog should add newline when input line matches wraplen' '
        cat >expect <<\EOF &&
 A U Thor (2):