summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-12-20 18:35:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-12-20 20:31:01 (GMT)
commitbc44f9332a8f6b258d7b7d2ecba063aa7f48e182 (patch)
tree2408dc5f4b61cee64d9be2a322ce9aeac75311aa /t
parent03f40829ad22deb7b6950cfc28a3779ece9e6a56 (diff)
downloadgit-bc44f9332a8f6b258d7b7d2ecba063aa7f48e182.zip
git-bc44f9332a8f6b258d7b7d2ecba063aa7f48e182.tar.gz
git-bc44f9332a8f6b258d7b7d2ecba063aa7f48e182.tar.bz2
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t4201-shortlog.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh
index 6c7c637..9df054b 100755
--- a/t/t4201-shortlog.sh
+++ b/t/t4201-shortlog.sh
@@ -191,8 +191,14 @@ test_expect_success 'shortlog with --output=<file>' '
'
test_expect_success 'shortlog --committer (internal)' '
+ git checkout --orphan side &&
+ git commit --allow-empty -m one &&
+ git commit --allow-empty -m two &&
+ GIT_COMMITTER_NAME="Sin Nombre" git commit --allow-empty -m three &&
+
cat >expect <<-\EOF &&
- 3 C O Mitter
+ 2 C O Mitter
+ 1 Sin Nombre
EOF
git shortlog -nsc HEAD >actual &&
test_cmp expect actual