# limitations under the License.
-# This is the git upstream example hook, but it's actually useful.
+# ian: This section is the git upstream example hook, but it's actually useful.
-#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
exit 1
fi
-set -eE -o pipefail
-trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
-# inspired from:
+# ian: inspired from:
# https://github.com/ntc2/conf/blob/master/dot.gitconfig
+# last checked for any changes there on 7/2016
# duplicated at,
# http://stackoverflow.com/a/15398512/14456
-# last checked for any changes there on 7/2016
+set -eE -o pipefail
+trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
+
if [[ $(git config --bool hooks.allowwhitespace) == true ]] || \
[[ $GIT_ALLOWWHITESPACE == true ]]; then
exit 0