CandyShop / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
1 stars 0 forks source link

problem to copy commit-hook for tcsh #2609

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version:

What steps will reproduce the problem?
1. git push
2. gitdir=$(git rev-parse --git-dir); scp -p -P 29418 
user@hostname:hooks/commit-msg ${gitdir}/hooks/
3.

What is the expected output? What do you see instead?
Expected:
commit-msg                                                                      

100% 4361     X.YKB/s   00:00

Instead:
Illegal variable name.

Please provide any additional information below.
>echo $SHELL
/bin/tcsh

Workaround
When using bash instead it works fine.

Original issue reported on code.google.com by chi...@gmail.com on 16 Apr 2014 at 7:30

GoogleCodeExporter commented 9 years ago
You can not set variables like that in tcsh...

scp -p -P 29418 user@hostname:hooks/commit-msg `git rev-parse --git-dir`/hooks/

should work in tcsh. 

Original comment by icee...@googlemail.com on 23 Apr 2014 at 7:35