format-patch: ensure that --rfc and -k are mutually exclusive
[alt-git.git] / t / t4256-am-format-flowed.sh
blob1015273bc827aeeef1e75edbf6c819e04719bde6
1 #!/bin/sh
3 test_description='test format=flowed support of git am'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
8 test_expect_success 'setup' '
9 cp "$TEST_DIRECTORY/t4256/1/mailinfo.c.orig" mailinfo.c &&
10 git add mailinfo.c &&
11 git commit -m initial
14 test_expect_success 'am with format=flowed' '
15 git am <"$TEST_DIRECTORY/t4256/1/patch" 2>stderr &&
16 test_i18ngrep "warning: Patch sent with format=flowed" stderr &&
17 test_cmp "$TEST_DIRECTORY/t4256/1/mailinfo.c" mailinfo.c
20 test_done