From: Junio C Hamano Date: Sun, 22 Mar 2009 06:09:21 +0000 (-0700) Subject: Merge branch 'tr/maint-1.6.0-send-email-irt' into maint X-Git-Tag: v1.6.2.2~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=923cc82c481a99269d397dc86f8b664ba8cb98da;p=git.git Merge branch 'tr/maint-1.6.0-send-email-irt' into maint * tr/maint-1.6.0-send-email-irt: send-email: test --no-thread --in-reply-to combination send-email: respect in-reply-to regardless of threading Conflicts: t/t9001-send-email.sh --- 923cc82c481a99269d397dc86f8b664ba8cb98da diff --cc t/t9001-send-email.sh index 4df4f965c,a404204b1..d7634187a --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@@ -434,25 -292,15 +434,36 @@@ test_expect_success '--compose adds MIM grep "^Subject: =?utf-8?q?utf8-s=C3=BCbj=C3=ABct?=" msgtxt1 ' +test_expect_success 'detects ambiguous reference/file conflict' ' + echo master > master && + git add master && + git commit -m"add master" && + test_must_fail git send-email --dry-run master 2>errors && + grep disambiguate errors +' + +test_expect_success 'feed two files' ' + rm -fr outdir && + git format-patch -2 -o outdir && + GIT_SEND_EMAIL_NOTTY=1 git send-email \ + --dry-run \ + --from="Example " \ + --to=nobody@example.com \ + outdir/000?-*.patch 2>errors >out && + grep "^Subject: " out >subjects && + test "z$(sed -n -e 1p subjects)" = "zSubject: [PATCH 1/2] Second." && + test "z$(sed -n -e 2p subjects)" = "zSubject: [PATCH 2/2] add master" +' + + test_expect_success 'in-reply-to but no threading' ' + git send-email \ + --dry-run \ + --from="Example " \ + --to=nobody@example.com \ + --in-reply-to="" \ + --no-thread \ + $patches | + grep "In-Reply-To: " + ' + test_done