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: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Jul 11, 2016 at 15:11 UTC
bac233f2c28428c3e2c5279910bc4c027cd0b540
1 file changed
+2
-2
t/t4201-shortlog.sh
+2
-2
@@ -185,9 +185,9 @@ test_expect_success 'shortlog with revision pseudo options' '
185
'
186
187
test_expect_success 'shortlog with --output=<file>' '
188
- git shortlog --output=shortlog master >output &&
188
+ git shortlog --output=shortlog -1 master >output &&
189
test ! -s output &&
190
- test_line_count = 7 shortlog
190
+ test_line_count = 3 shortlog
191
'
192
193
test_done