@@ -170,22 +170,22 @@ commit_MIX_chkwrn () {
170
170
git -c core.autocrlf=$crlf add $fname 2> " ${pfx} _$f .err"
171
171
done
172
172
173
- test_expect_success " commit file with mixed EOL crlf=$crlf attr=$attr LF " '
173
+ test_expect_success " commit file with mixed EOL onto LF crlf=$crlf attr=$attr " '
174
174
check_warning "$lfwarn" ${pfx}_LF.err
175
175
'
176
- test_expect_success " commit file with mixed EOL attr=$attr aeol=$aeol crlf=$crlf CRLF " '
176
+ test_expect_success " commit file with mixed EOL onto CLRF attr=$attr aeol=$aeol crlf=$crlf " '
177
177
check_warning "$crlfwarn" ${pfx}_CRLF.err
178
178
'
179
179
180
- test_expect_success " commit file with mixed EOL attr=$attr aeol=$aeol crlf=$crlf CRLF_mix_LF " '
180
+ test_expect_success " commit file with mixed EOL onto CRLF_mix_LF attr=$attr aeol=$aeol crlf=$crlf " '
181
181
check_warning "$lfmixcrlf" ${pfx}_CRLF_mix_LF.err
182
182
'
183
183
184
- test_expect_success " commit file with mixed EOL attr=$attr aeol=$aeol crlf=$crlf LF_mix_cr " '
184
+ test_expect_success " commit file with mixed EOL onto LF_mix_cr attr=$attr aeol=$aeol crlf=$crlf " '
185
185
check_warning "$lfmixcr" ${pfx}_LF_mix_CR.err
186
186
'
187
187
188
- test_expect_success " commit file with mixed EOL attr=$attr aeol=$aeol crlf=$crlf CRLF_nul " '
188
+ test_expect_success " commit file with mixed EOL onto CRLF_nul attr=$attr aeol=$aeol crlf=$crlf " '
189
189
check_warning "$crlfnul" ${pfx}_CRLF_nul.err
190
190
'
191
191
}
@@ -378,7 +378,7 @@ test_expect_success 'setup master' '
378
378
printf "\$Id: 0000000000000000000000000000000000000000 \$\r\nLINEONE\r\nLINETWO\rLINETHREE" >CRLF_mix_CR &&
379
379
printf "\$Id: 0000000000000000000000000000000000000000 \$\r\nLINEONEQ\r\nLINETWO\r\nLINETHREE" | q_to_nul >CRLF_nul &&
380
380
printf "\$Id: 0000000000000000000000000000000000000000 \$\nLINEONEQ\nLINETWO\nLINETHREE" | q_to_nul >LF_nul &&
381
- create_NNO_MIX_files CRLF_mix_LF CRLF_mix_LF CRLF_mix_LF CRLF_mix_LF CRLF_mix_LF &&
381
+ create_NNO_MIX_files &&
382
382
git -c core.autocrlf=false add NNO_*.txt MIX_*.txt &&
383
383
git commit -m "mixed line endings" &&
384
384
test_tick
@@ -441,13 +441,14 @@ test_expect_success 'commit files attr=crlf' '
441
441
'
442
442
443
443
# Commit "CRLFmixLF" on top of these files already in the repo:
444
- # LF, CRLF, CRLFmixLF LF_mix_CR CRLFNULL
444
+ # mixed mixed mixed mixed mixed
445
+ # onto onto onto onto onto
445
446
# attr LF CRLF CRLFmixLF LF_mix_CR CRLFNUL
446
447
commit_MIX_chkwrn " " " " false " " " " " " " " " "
447
448
commit_MIX_chkwrn " " " " true " LF_CRLF" " " " " " LF_CRLF" " LF_CRLF"
448
449
commit_MIX_chkwrn " " " " input " CRLF_LF" " " " " " CRLF_LF" " CRLF_LF"
449
450
450
- commit_MIX_chkwrn " auto" " " false " CRLF_LF " " " " " " CRLF_LF " " CRLF_LF "
451
+ commit_MIX_chkwrn " auto" " " false " $WAMIX " " " " " " $WAMIX " " $WAMIX "
451
452
commit_MIX_chkwrn " auto" " " true " LF_CRLF" " " " " " LF_CRLF" " LF_CRLF"
452
453
commit_MIX_chkwrn " auto" " " input " CRLF_LF" " " " " " CRLF_LF" " CRLF_LF"
453
454
0 commit comments