t4201: make tests work with and without the MINGW prerequiste

Make sure the tests do not depend on the result of the previous tests. With MINGW prerequisite satisfied, a "reset to original and rebuild" in an earlier test was skipped, resulting in different history being tested with this and the next tests. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Dec 20, 2016 at 10:35 UTC bc44f9332a8f6b258d7b7d2ecba063aa7f48e182
1 file changed +7 -1
t/t4201-shortlog.sh
+7 -1
@@ -191,8 +191,14 @@ test_expect_success 'shortlog with --output=<file>' '
191 '
192
193 test_expect_success 'shortlog --committer (internal)' '
194 + git checkout --orphan side &&
195 + git commit --allow-empty -m one &&
196 + git commit --allow-empty -m two &&
197 + GIT_COMMITTER_NAME="Sin Nombre" git commit --allow-empty -m three &&
198 +
199 cat >expect <<-\EOF &&
195 - 3 C O Mitter
200 + 2 C O Mitter
201 + 1 Sin Nombre
202 EOF
203 git shortlog -nsc HEAD >actual &&
204 test_cmp expect actual