summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-11-30 14:49:41 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-30 14:49:41 -0800
commit376b4cc420182a72c46da6a12f53157cadd81bd5 (patch)
tree86d1d1854047ebecea2a5a405aedddfb84faaec9 /t
parentMerge branch 'js/t3040-cleanup' (diff)
parentt4015: let the test pass with any default branch name (diff)
downloadtgif-376b4cc420182a72c46da6a12f53157cadd81bd5.tar.xz
Merge branch 'js/t4015-wo-master'
A test script got cleaned up not to depend on the value of init.defaultBranch. * js/t4015-wo-master: t4015: let the test pass with any default branch name
Diffstat (limited to 't')
-rwxr-xr-xt/t4015-diff-whitespace.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t4015-diff-whitespace.sh b/t/t4015-diff-whitespace.sh
index 8bdaa0a693..47f0e2889d 100755
--- a/t/t4015-diff-whitespace.sh
+++ b/t/t4015-diff-whitespace.sh
@@ -877,13 +877,13 @@ test_expect_success 'rename empty' '
test_expect_success 'combined diff with autocrlf conversion' '
git reset --hard &&
- echo >x hello &&
- git commit -m "one side" x &&
+ test_commit "one side" x hello one-side &&
git checkout HEAD^ &&
echo >x goodbye &&
git commit -m "the other side" x &&
git config core.autocrlf true &&
- test_must_fail git merge master &&
+ test_must_fail git merge one-side >actual &&
+ test_i18ngrep "Automatic merge failed" actual &&
git diff >actual.raw &&
sed -e "1,/^@@@/d" actual.raw >actual &&