My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 922: commit-msg hook uses invalid language constructs for /bin/sh
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  May 2011


Sign in to add a comment
 
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
Sign in to add a comment

Powered by Google Project Hosting