{"thread":{"id":"42819","subject":"[PATCH] mingw: fix the shortlog --output=<file> test","startedAt":"2016-07-11T13:11:52Z","lastAt":"2016-07-11T13:11:52Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"291167","messageId":"alpine.DEB.2.20.1607111507180.6426@virtualbox","threadId":"42819","inReplyTo":null,"subject":"[PATCH] mingw: fix the shortlog --output=<file> test","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2016-07-11T13:11:37Z","receivedAt":"2016-07-11T13:11:52Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Adjust t4201 to pass on Windows; a couple of test cases need to be\nskipped on Windows which leads to a different shortlog than on Linux.\n\nLet's just fix that by limiting the shortlog's commit range to traverse\nonly one commit: that guarantees that it does not matter how many test\ncases were skipped.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n\n---\n\n\tOn Fri, 8 Jul 2016, Junio C Hamano wrote:\n\n\t> * js/log-to-diffopt-file (2016-06-28) 11 commits\n\t>   (merged to 'next' on 2016-07-06 at 39e7a5f)\n\t>  + diff: do not color output when --color=auto and --output=<file>\n\t>    is given\n\t>  + t4211: ensure that log respects --output=<file>\n\t>  + shortlog: respect the --output=<file> setting\n\n\tDang it! My original test series was well-tested on Linux *and* on\n\tWindows. Over the course of the iterations, Windows support broke.\n\n\tMy apologies for not catching this earlier.\n\n t/t4201-shortlog.sh | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh\nindex bd699e1..ae08b57 100755\n--- a/t/t4201-shortlog.sh\n+++ b/t/t4201-shortlog.sh\n@@ -185,9 +185,9 @@ test_expect_success 'shortlog with revision pseudo options' '\n '\n \n test_expect_success 'shortlog with --output=<file>' '\n-\tgit shortlog --output=shortlog master >output &&\n+\tgit shortlog --output=shortlog -1 master >output &&\n \ttest ! -s output &&\n-\ttest_line_count = 7 shortlog\n+\ttest_line_count = 3 shortlog\n '\n \n test_done\n-- \n2.9.0.278.g1caae67\n\n"}]}