Gerrit-3.7.x clone with commit-amsg hook gives subsystem request failed on channel 0

85 views
Skip to first unread message

Pranab Panda

unread,
Mar 16, 2023, 6:18:23 PM3/16/23
to Repo and Gerrit Discussion
Why this is marked as abuse? It has been marked as abuse.
Report not abuse

Hi

I see we have a chromium bug on this and suggested resolution was to use 

https for cloning with commit-msg.

But for those teams who only allow SSH what is the solution,


Simplest would be to change the downloads-commands plugin to add -O to the command,

how can we change that in UI


Also what is difference between download-commands and project-download-commands plugins?



git clone "ssh://pranab...@gerrit.xxx.com:29418/wifi-ci" && scp -p -P 29418 pranab...@gerrit.xxx.com:hooks/commit-msg "wifi-ci/.git/hooks/"

………

Updating files: 100% (33112/33112), done.

subsystem request failed on channel 0

scp: Connection closed



git clone "ssh://pranab...@gerrit.xxx.com:29418/wifi-ci" && scp -p -O -P 29418 pranab...@gerrit.xxx.com::hooks/commit-msg "wifi-ci/.git/hooks/"

……..

Updating files: 100% (33112/33112), done.

commit-msg                                                                                                        100% 2992     3.8MB/s   00:00    


Please let me know
thanks
Pranab

Fabio Ponciroli

unread,
Mar 17, 2023, 4:38:27 AM3/17/23
to Pranab Panda, Repo and Gerrit Discussion
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
Hi Pranab,


Gerrit allows overriding the command to download the commit hook by setting this property: gerrit.installCommitMsgHookCommand [1]

It should fit your case.

HTH

Thanks,
Ponch



 
Please let me know
thanks
Pranab

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/13bcfa21-4309-4c2f-89d2-38f32a920ea4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages