summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2016-07-11 15:11:37 +0200
committerJunio C Hamano <gitster@pobox.com>2016-07-11 12:32:02 -0700
commitbac233f2c28428c3e2c5279910bc4c027cd0b540 (patch)
treebc55fdf4985a0893e495d47cf761be7bcc344b0e
parentafc676f2c9e20a5b38d61c7803468d33e2ff45f2 (diff)
downloadgit-js/log-to-diffopt-file.tar.gz
mingw: fix the shortlog --output=<file> testjs/log-to-diffopt-file
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>
-rwxr-xr-xt/t4201-shortlog.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh
index bd699e11f1..ae08b57712 100755
--- a/t/t4201-shortlog.sh
+++ b/t/t4201-shortlog.sh
@@ -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