Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t4201: make tests work with and without the MINGW prerequiste
author
Junio C Hamano
<gitster@pobox.com>
Tue, 20 Dec 2016 18:35:54 +0000
(10:35 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 20 Dec 2016 20:31:01 +0000
(12:31 -0800)
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>
t/t4201-shortlog.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
03f4082
)
diff --git
a/t/t4201-shortlog.sh
b/t/t4201-shortlog.sh
index 6c7c6374812a76b38f7073c487980266c1cfe38e..9df054bf05b8cd40011c0577aa0ce0f30cb8c23f 100755
(executable)
--- 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