3 test_description
='git-send-email'
8 'prepare reference tree' \
9 'echo "1A quick brown fox jumps over the" >file &&
10 echo "lazy dog" >>file &&
12 GIT_AUTHOR_NAME="A" git commit -a -m "Initial."'
20 echo " echo \"!\$a!\""
21 echo "done >commandline"
24 chmod +x ./fake.sendmail
26 GIT_AUTHOR_NAME="A" git commit -a -m "Second."'
28 test_expect_success
'Extract patches' '
29 patches=`git format-patch -n HEAD^1`
32 test_expect_success
'Send patches' '
33 git send-email -from="Example <nobody@example.com>" --to=nobody@example.com --smtp-server="$(pwd)/fake.sendmail" $patches 2>errors
41 'Verify commandline' \
42 'diff commandline expected'