Skip to content

Commit bac233f

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent afc676f commit bac233f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t4201-shortlog.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ test_expect_success 'shortlog with revision pseudo options' '
185185
'
186186

187187
test_expect_success 'shortlog with --output=<file>' '
188-
git shortlog --output=shortlog master >output &&
188+
git shortlog --output=shortlog -1 master >output &&
189189
test ! -s output &&
190-
test_line_count = 7 shortlog
190+
test_line_count = 3 shortlog
191191
'
192192

193193
test_done

0 commit comments

Comments
 (0)