cvsserver: further improve messages on commit and status
[gitweb.git] / git-applymbox.sh
index 7e690a16ee40c957b83770cf115190c53edd3013..2cbdc7eb3cc1c9843bd8877b39a194e677272260 100755 (executable)
@@ -28,7 +28,7 @@ while case "$#" in 0) break ;; esac
 do
        case "$1" in
        -u)     utf8=-u ;;
-       -n)     utf8= ;;
+       -n)     utf8=-n ;;
        -k)     keep_subject=-k ;;
        -q)     query_apply=t ;;
        -c)     continue="$2"; resume=f; shift ;;
@@ -77,6 +77,10 @@ do
     *)
            git-mailinfo $keep_subject $utf8 \
                .dotest/msg .dotest/patch <$i >.dotest/info || exit 1
+           test -s $dotest/patch || {
+               echo "Patch is empty.  Was is split wrong?"
+               stop_here $this
+           }
            git-stripspace < .dotest/msg > .dotest/msg-clean
            ;;
     esac