git-am support for naked email messages (take 2)
[git.git] / git-am.sh
index 6ed527c..f143b7e 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -164,10 +164,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
        }