summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-06-02 06:05:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-02 06:06:00 (GMT)
commit8e6a904dd8afedcc0bcfcc4bf4c5f4b2c10edfbf (patch)
treea5edb5b4326539b352792f3397223aa2eaa67556 /t
parentb85b88141ea102638cd532813767e6f9484b1498 (diff)
parent177409e5897988f03e0c8111c94db6ea0466b138 (diff)
downloadgit-8e6a904dd8afedcc0bcfcc4bf4c5f4b2c10edfbf.zip
git-8e6a904dd8afedcc0bcfcc4bf4c5f4b2c10edfbf.tar.gz
git-8e6a904dd8afedcc0bcfcc4bf4c5f4b2c10edfbf.tar.bz2
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-xt/t9001-send-email.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 15128c7..d1e4e8a 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