From b66f614e5d5fee0aad1eb025c228fcbf7f2aae7e Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Tue, 8 Jul 2014 15:32:39 -0400 Subject: pre-commit: Add 'unset GREP_OPTIONS' (similar to Gerrit commit-msg) msysgit grep is fairly old and doesn't recognize certain grep options, e.g., '--color=auto'. I imagine there may possibly be other grep option issues on various platforms. (I also note that the various git scripts in libexec/git-core clear out GREP_OPTIONS before calling grep). Change-Id: I67bc148a77cfc0167064e61e8c47a5f091704eac Reviewed-on: https://code.wireshark.org/review/2945 Reviewed-by: Bill Meier --- tools/pre-commit | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/pre-commit') diff --git a/tools/pre-commit b/tools/pre-commit index 153f229b03..b336d34880 100755 --- a/tools/pre-commit +++ b/tools/pre-commit @@ -8,6 +8,8 @@ # http://mark-story.com/posts/view/using-git-commit-hooks-to-prevent-stupid-mistakes # +unset GREP_OPTIONS + if [ -z $GIT_DIR ]; then GIT_DIR=".git"; fi # Check for newer versions of the pre-commit script -- cgit v1.2.1