aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-16 19:28:06 +0900
committerJunio C Hamano <gitster@pobox.com>2019-04-16 19:28:06 +0900
commit17c8f1f2eda10a972af01b6a909d6586e4114c41 (patch)
tree6b4d2f3df63805b81518b7bcbd06c8e4e43791d1 /t
parente197980eb2446da92a4e7d835c05adbc25c17ae0 (diff)
parent2fe95f494cde6cb3c3e6894bb687961b28b1764b (diff)
downloadgit-17c8f1f2eda10a972af01b6a909d6586e4114c41.tar.gz
Merge branch 'jc/format-patch-error-check'
"git format-patch" used overwrite an existing patch/cover-letter file. A new "--no-clobber" option stops it. * jc/format-patch-error-check: format-patch: notice failure to open cover letter for writing builtin/log: downcase the beginning of error messages
Diffstat (limited to 't')
-rwxr-xr-xt/t4014-format-patch.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index 909c743c13..b6e2fdbc44 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -589,6 +589,12 @@ test_expect_success 'excessive subject' '
ls patches/0004-This-is-an-excessively-long-subject-line-for-a-messa.patch
'
+test_expect_success 'failure to write cover-letter aborts gracefully' '
+ test_when_finished "rmdir 0000-cover-letter.patch" &&
+ mkdir 0000-cover-letter.patch &&
+ test_must_fail git format-patch --no-renames --cover-letter -1
+'
+
test_expect_success 'cover-letter inherits diff options' '
git mv file foo &&
git commit -m foo &&