diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-06-02 15:05:59 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-02 15:06:00 +0900 |
commit | 8e6a904dd8afedcc0bcfcc4bf4c5f4b2c10edfbf (patch) | |
tree | a5edb5b4326539b352792f3397223aa2eaa67556 /t | |
parent | b85b88141ea102638cd532813767e6f9484b1498 (diff) | |
parent | 177409e5897988f03e0c8111c94db6ea0466b138 (diff) | |
download | git-8e6a904dd8afedcc0bcfcc4bf4c5f4b2c10edfbf.tar.gz |
Merge branch 'jt/send-email-validate-hook'
A hotfix for a topic already in 'master'.
* jt/send-email-validate-hook:
send-email: check for repo before invoking hook
Diffstat (limited to 't')
-rwxr-xr-x | t/t9001-send-email.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index 15128c755a..d1e4e8ad19 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -1953,4 +1953,12 @@ test_expect_success $PREREQ 'invoke hook' ' ) ' +test_expect_success $PREREQ 'test that send-email works outside a repo' ' + nongit git send-email \ + --from="Example <nobody@example.com>" \ + --to=nobody@example.com \ + --smtp-server="$(pwd)/fake.sendmail" \ + "$(pwd)/0001-add-master.patch" +' + test_done |