Skip to content

Commit 376b4cc

Browse files
committed
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
2 parents 26d0286 + 26d0a6d commit 376b4cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t4015-diff-whitespace.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -877,13 +877,13 @@ test_expect_success 'rename empty' '
877877
test_expect_success 'combined diff with autocrlf conversion' '
878878
879879
git reset --hard &&
880-
echo >x hello &&
881-
git commit -m "one side" x &&
880+
test_commit "one side" x hello one-side &&
882881
git checkout HEAD^ &&
883882
echo >x goodbye &&
884883
git commit -m "the other side" x &&
885884
git config core.autocrlf true &&
886-
test_must_fail git merge master &&
885+
test_must_fail git merge one-side >actual &&
886+
test_i18ngrep "Automatic merge failed" actual &&
887887
888888
git diff >actual.raw &&
889889
sed -e "1,/^@@@/d" actual.raw >actual &&

0 commit comments

Comments
 (0)