Skip to content

Commit

Permalink
Merge pull request #287 from mhamrle/git_hook_escape_backslash
Browse files Browse the repository at this point in the history
git hook: use printf for diff print out
  • Loading branch information
toxeus committed Oct 14, 2014
2 parents 2505c6e + cf1f139 commit 4b4ec1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/git_hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ files=$(git diff --cached --name-only --diff-filter=AM $against | \
diffs=$(./scripts/build/clang-format-wrapper.sh "$files")
[ "$diffs" ] || exit 0
echo Found C++ code style formatting issues:
echo "$diffs"
printf "%s" "$diffs"
exit 1

0 comments on commit 4b4ec1f

Please sign in to comment.