Issue 922: commit-msg hook uses invalid language constructs for /bin/sh
Status:  Released
Owner: ----
Closed:  May 2011
Reported by Magnus.V...@gmail.com, Apr 29, 2011
Affected Version: 2.1.6.1, master

What steps will reproduce the problem?
1. On a system with a true bourne shell as /bin/sh (a Solaris machine for example) commit some files to git.
2. An error will occur in the gerrit-provided commit-hook and abort the commit.


What is the expected output? What do you see instead?

Expected output is the output without the hook installed, not the following error message:

.git/hooks/commit-msg: syntax error at line 27: `clean_message=$' unexpected


Please provide any additional information below.

Changing the interpreter in commit-msg to /bin/ksh works for Solaris.

May 14, 2011
#1 sop@google.com
(No comment was entered for this change.)
Status: Submitted
Labels: FixedIn-2.1.7
May 31, 2011
#2 sop@google.com
(No comment was entered for this change.)
Status: Released