Skip to content

Fix push options not working with Gitaly post-receive hook

Stan Hu requested to merge sh-fix-push-options-gitaly-hook into master

The Ruby implementation passes push_options[] because it uses a Content-Type of application/x-www-form-urlencoded, but the Go gitlab-shell client passes a body with Content-Type of application/json. Because the JSON payload is parsed literally, the key needs to be push_options instead of push_options[].

Closes #2970 (closed)

Edited by Stan Hu

Merge request reports

Loading