Commit 5e5d8a09 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] newline in echo isn't portable

parent ad73a77d
......@@ -108,13 +108,18 @@ git log $SOURCEBRANCH --reverse --format='%H' $LASTHASH..$SOURCEBRANCH | \
git reset --hard
# build mail message
MESSAGE="Attempt to cherry pick ${hash}\nto $BRANCH failed."
MESSAGE=$MESSAGE"\nCommit message of change was:\n"
MESSAGE=$MESSAGE"`git log -1 --pretty=format:%s%n%b ${hash}`"
subject="Branch sync to $BRANCH failed"
cat << EOF > /tmp/branchmsg.$$
Attempt to cherry pick ${hash}
to $BRANCH failed.
Commit message of change was:
`git log -1 --pretty=format:%s%n%b ${hash}`
EOF
# send mail
echo "$MESSAGE" | mail -s "$subject" bind-changes
cat /tmp/branchmsg.$$ | mail -s "$subject" bind-changes
rm /tmp/branchmsg.$$
fi
break
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment