]> git.ipfire.org Git - thirdparty/git.git/commit
t4015: let the test pass with any default branch name
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 18 Nov 2020 23:35:44 +0000 (23:35 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Nov 2020 19:51:01 +0000 (11:51 -0800)
commit26d0a6d47ab946f49e2aee40ae16f53915c397f4
treeaf889d65ed9befbb2daafddf95d0dff67c452c88
parent898f80736c75878acc02dc55672317fcc0e0a5a6
t4015: let the test pass with any default branch name

We do not need to hard-code the actual branch name, as we can use the
`test_commit` function to simplify the code and use the tag it
generates, thereby being a lot more precise in what we want.

Strangely enough, this test case would have succeeded even with an
overridden default branch name, obviously for the wrong reason. Let's
verify that it passes for the expected reason, by looking for a
tell-tale in Git's output.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4015-diff-whitespace.sh