Add "stripspace" program to clean up email commentary
[git.git] / dotest
diff --git a/dotest b/dotest
index a3e3d35..ccc1f03 100755 (executable)
--- a/dotest
+++ b/dotest
@@ -20,7 +20,8 @@ mailsplit $1 .dotest || exit 1
 for i in .dotest/*
 do
        mailinfo .dotest/msg .dotest/patch .dotest/file < $i > .dotest/info || exit 1
-       applypatch .dotest/msg .dotest/patch .dotest/file .dotest/info "$2"
+       stripspace < .dotest/msg > .dotest/msg-clean
+       applypatch .dotest/msg-clean .dotest/patch .dotest/file .dotest/info "$2"
        ret=$?
        if [ $ret -ne 0 ]; then
                # 2 is a special exit code from applypatch to indicate that