Git push options are not enabled when using Helm charts
Per gitlab-org/gitlab-ce#33061, git push options should be supported as of 10.3. Attempting to use them against GitLab 11.7 deployed via chart v1.5.0 returns an error indicating GitLab does not support them.
gitlab-org/omnibus-gitlab!2113 (merged) (attached to gitlab-org/gitlab-ce#33061) changed the global git options to set receive.advertisePushOptions=true as a required set for enabling push options. I've confirmed that /home/git/.gitconfig in a running Gitaly pod contains only the options set by Gitaly's Dockerfile at https://gitlab.com/gitlab-org/build/CNG/blob/master/gitaly/Dockerfile which does not include receive.advertisePushOptions. I've verified that adding this option to /home/git/.gitconfig enables push options by manually setting the option in a gitaly pod and having a push with push options succeed.
Steps to reproduce
- git push -o ci.skip origin master
[workstation]$ git push -o ci.skip origin master fatal: the receiving end does not support push options fatal: The remote end hung up unexpectedly
[gitaly-pod]$ cat /home/git/.gitconfig [gc] auto = 0 [core] autocrlf = input [repack] writeBitmaps = true
git push -o ci.skip origin master should complete successfully.
[gitaly-pod]$ cat /home/git/.gitconfig [gc] auto = 0 [core] autocrlf = input [repack] writeBitmaps = true [receive] advertisePushOptions = true
- Chart: v1.5.0