summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git-apply-patch-script6
1 files changed, 2 insertions, 4 deletions
diff --git a/git-apply-patch-script b/git-apply-patch-script
index b6387f6..c28015a 100644
--- a/git-apply-patch-script
+++ b/git-apply-patch-script
@@ -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