]>
Commit | Line | Data |
---|---|---|
3aa4d81f RS |
1 | #!/bin/sh |
2 | ||
3 | test_description='test format=flowed support of git am' | |
4 | ||
b2e5d75d | 5 | TEST_PASSES_SANITIZE_LEAK=true |
3aa4d81f RS |
6 | . ./test-lib.sh |
7 | ||
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 | |
12 | ' | |
13 | ||
14 | test_expect_success 'am with format=flowed' ' | |
cb05d6a5 | 15 | git am <"$TEST_DIRECTORY/t4256/1/patch" 2>stderr && |
6789275d | 16 | test_grep "warning: Patch sent with format=flowed" stderr && |
3aa4d81f RS |
17 | test_cmp "$TEST_DIRECTORY/t4256/1/mailinfo.c" mailinfo.c |
18 | ' | |
19 | ||
20 | test_done |