summaryrefslogtreecommitdiff
path: root/scripts/githooks
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-05-28 21:10:21 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-05-29 09:58:46 +0200
commit9ba8d6f3092023385de95bd65a77327f676412d7 (patch)
treef90279f0c19e5042a1597c01e303c806fe9a12bc /scripts/githooks
parent152bdf44723319b38d3ea100b568f7c73d6848c3 (diff)
downloadmupdf-9ba8d6f3092023385de95bd65a77327f676412d7.tar.xz
Trivial (and probably needless) simplification of git hook.
Diffstat (limited to 'scripts/githooks')
-rwxr-xr-xscripts/githooks/pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/githooks/pre-commit b/scripts/githooks/pre-commit
index fec7128f..3a47af96 100755
--- a/scripts/githooks/pre-commit
+++ b/scripts/githooks/pre-commit
@@ -13,7 +13,7 @@ PATCH=P.diff
if ! git diff --cached --check --quiet
then
git diff --cached > $PATCH
- git apply --cached --whitespace=fix -R $PATCH
+ git apply --cached -R $PATCH
git apply --cached --whitespace=fix $PATCH
rm $PATCH
fi