Skip to content

Commit

Permalink
UTILS: Disable any astylerc file that might exist on the host machine
Browse files Browse the repository at this point in the history
and only take into consideration the options that are passes explicitly
as arguments during the pre-commit hook.
  • Loading branch information
esindril committed Aug 18, 2016
1 parent cab3498 commit b190022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/hooks/pre-commit.sh
Expand Up @@ -47,7 +47,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACMR | grep -E "\.(c|h|cpp|h
set -e

for FILE in ${FILES}; do
${ASTYLE} ${ARTISTIC_STYLE_OPTIONS} -n ${FILE}
${ASTYLE} --options=none ${ARTISTIC_STYLE_OPTIONS} -n ${FILE}
git add ${FILE}
done

Expand Down

0 comments on commit b190022

Please sign in to comment.