3 test_description
='git-send-email'
6 say
"cannot invoke fake.sendmail; skipping test"
12 'prepare reference tree' \
13 'echo "1A quick brown fox jumps over the" >file &&
14 echo "lazy dog" >>file &&
16 GIT_AUTHOR_NAME="A" git commit -a -m "Initial."'
24 echo " echo \"!\$a!\""
25 echo "done >commandline"
28 chmod +x ./fake.sendmail
30 GIT_AUTHOR_NAME="A" git commit -a -m "Second."'
32 test_expect_success
'Extract patches' '
33 patches=`git format-patch -n HEAD^1`
36 test_expect_success
'Send patches' '
37 git send-email -from="Example <nobody@example.com>" --to=nobody@example.com --smtp-server="$(pwd)/fake.sendmail" $patches 2>errors
45 'Verify commandline' \
46 'diff commandline expected'