Issue 3321: Issue in installing git commit-msg hook
Status:  Invalid
Owner: ----
Closed:  May 2015
Reported by rahulgen...@gmail.com, Apr 21, 2015
I want to apply patch to android community. To get the change id script, i have run the following command to get the git hook. But received the following error, connection refused.

scp -p -P 29418 rahul.khandelwal@review.example.com:hooks/commit-msg .git/hooks
ssh: connect to host review.example.com port 29418: Connection refused

Please help to get the script or any other way to get the change-id.
Apr 21, 2015
#1 rahulgen...@gmail.com
Hello,
I have downloaded the file using the below command.
curl -Lo.git/hooks/commit-msg http://review.example.com/tools/hooks/commit-msg

Run the following command to make it executable.
chmod u+x .git/hooks/commit-msg

When i try to commit, it does not show the change id in the commit message.

Please help to debug the issue.
Apr 21, 2015
#2 rahulgen...@gmail.com
Getting this error.
.git/hooks/commit-msg: 3: .git/hooks/commit-msg: Syntax error: newline unexpected

I have attached the commit-msg script.
commit-msg
7.7 KB   View   Download
Apr 22, 2015
#3 rahulgen...@gmail.com
It is done.. :)
forget to change the link to.
Apr 22, 2015
#4 matt...@unsolvable.org
The attachment you provided (commit-msg) contains html, not a commit hook. You need to fix the download of the commit hook. Look at the contents of the file you get, to make sure what it is valid.

May 5, 2015
Project Member #5 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Invalid