We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 4e9dda2 commit 177a017Copy full SHA for 177a017
scripts/prepare-commit.sh
@@ -18,6 +18,10 @@ TOPLEVEL=$(git rev-parse --show-toplevel)
18
19
PATH=$TOPLEVEL/scripts:$PATH
20
21
+if ! tty -s && [[ "$0" =~ /pre-commit ]]; then
22
+ exec </dev/tty
23
+fi
24
+
25
cd $TOPLEVEL
26
27
# GNU prefix command for mac os support (gsed, gsplit)
@@ -142,9 +146,6 @@ if [ -s "$ASTYLEDIFF" ]; then
142
146
exit 1
143
147
fi
144
148
145
-# If there are whitespace errors, print the offending file names and fail.
-exec git diff-index --check --cached HEAD --
-
149
exit 0
150
151
# vim: set ts=2 expandtab :
0 commit comments