The SCP way to copy the Gerrit commit-msg hook doesn't work

#222
Opened by noteed at 2022-11-22T16·55+00

It seems that the SSH way to the Gerrit commit-msg hook doesn't work (it's documented at https://cl.tvl.fyi/admin/repos/depot,general).

$ scp -p -P 29418 noteed@code.tvl.fyi:hooks/commit-msg a
subsystem request failed on channel 0
scp: Connection closed

(This works:

$ ssh -p 29418 noteed@code.tvl.fyi

  ****    Welcome to Gerrit Code Review    ****
...

)

The HTTP way works.

  1. noteed changed the subject of this issue from "The SCP way to copy the commit-msg hook doesn't work" to "The SCP way to copy the Gerrit commit-msg hook doesn't work" at 2022-11-22T16·56+00
  2. noteed updated the body of this issue at 2022-11-22T16·56+00
  3. Duplicate of b/181 - you have to pass -O

    aspen at 2022-11-22T17·12+00

  4. grfn closed this issue at 2022-11-22T17·13+00