Skip to content

Commit bc44f93

Browse files
committed
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>
1 parent 03f4082 commit bc44f93

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

t/t4201-shortlog.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,14 @@ test_expect_success 'shortlog with --output=<file>' '
191191
'
192192

193193
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+
194199
cat >expect <<-\EOF &&
195-
3 C O Mitter
200+
2 C O Mitter
201+
1 Sin Nombre
196202
EOF
197203
git shortlog -nsc HEAD >actual &&
198204
test_cmp expect actual

0 commit comments

Comments
 (0)