提交 bac233f2 编写于 作者: J Johannes Schindelin 提交者: Junio C Hamano

mingw: fix the shortlog --output=<file> test

Adjust t4201 to pass on Windows; a couple of test cases need to be
skipped on Windows which leads to a different shortlog than on Linux.

Let's just fix that by limiting the shortlog's commit range to traverse
only one commit: that guarantees that it does not matter how many test
cases were skipped.
Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 afc676f2
......@@ -185,9 +185,9 @@ test_expect_success 'shortlog with revision pseudo options' '
'
test_expect_success 'shortlog with --output=<file>' '
git shortlog --output=shortlog master >output &&
git shortlog --output=shortlog -1 master >output &&
test ! -s output &&
test_line_count = 7 shortlog
test_line_count = 3 shortlog
'
test_done
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册