[PATCH] typo fixes to git-apply-patch-script
[gitweb.git] / git-apply-patch-script
index b6387f66464fba58353b3fef423eeca327f570a7..c28015aad3bbe9ec18c031c1ef8f1f3c3c388378 100644 (file)
@@ -31,7 +31,7 @@ test -f "$name.rej" || {
            echo >&2 "created $name with mode +x."
            chmod "$mode2" "$name"
            ;;
-       -)
+       -x)
            echo >&2 "created $name."
            ;;
        esac
@@ -52,9 +52,7 @@ test -f "$name.rej" || {
            chmod "$mode2" "$name"
            ;;
        esac
+       git-update-cache -- "$name"
     esac
-    # This bit is debatable---the SCM may not want to keep
-    # cache in sync with the work tree (JIT does want to).
-    git-update-cache -- "$name"
 }
 exit 0