Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t4258-am-quoted-cr.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t4258-am-quoted-cr.sh` 37 lines ยท 846 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='test am --quoted-cr=' 4 5 . ./test-lib.sh 6 7 DATA="$TEST_DIRECTORY/t4258" 8 9 test_expect_success 'setup' ' 10 test_write_lines one two three >text && 11 test_commit one text && 12 test_write_lines one owt three >text && 13 test_commit two text 14 ' 15 16 test_expect_success 'am warn if quoted-cr is found' ' 17 git reset --hard one && 18 test_must_fail git am "$DATA/mbox" 2>err && 19 test_grep "quoted CRLF detected" err 20 ' 21 22 test_expect_success 'am --quoted-cr=strip' ' 23 test_might_fail git am --abort && 24 git reset --hard one && 25 git am --quoted-cr=strip "$DATA/mbox" && 26 git diff --exit-code HEAD two 27 ' 28 29 test_expect_success 'am with config mailinfo.quotedCr=strip' ' 30 test_might_fail git am --abort && 31 git reset --hard one && 32 test_config mailinfo.quotedCr strip && 33 git am "$DATA/mbox" && 34 git diff --exit-code HEAD two 35 ' 36 37 test_done