My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2609: problem to copy commit-hook for tcsh
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by chi...@gmail.com, Apr 16, 2014
************************************************************
***** 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.

Apr 23, 2014
#1 icee...@googlemail.com
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. 
Sign in to add a comment

Powered by Google Project Hosting