X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-am.sh;fp=git-am.sh;h=343bee9d81e53106226f6f32a75860119ece92cb;hb=9a26dbd120110ad4e07d3047abc13d615183c8ec;hp=39f255209e11283a0c3d402f215ff6c187922ea7;hpb=2db8aaeca1dca4e940829b87d1164e5b42ff49b4;p=git.git diff --git a/git-am.sh b/git-am.sh index 39f25520..343bee9d 100755 --- a/git-am.sh +++ b/git-am.sh @@ -160,10 +160,7 @@ else # Start afresh. mkdir -p "$dotest" || exit - # cat does the right thing for us, including '-' to mean - # standard input. - cat "$@" | - git-mailsplit -d$prec "$dotest/" >"$dotest/last" || { + git-mailsplit -d"$prec" -o"$dotest" -b -- "$@" > "$dotest/last" || { rm -fr "$dotest" exit 1 }