Push options are not enabled in gdk installation
Per gitlab-ce#33061, Git push options were enabled:
- In omnibus installations via omnibus-gitlab!2113 (merged)
- In source installations via gitlab-ce!14430
When attempting to test gitlab-ce!15643, I discovered that push options do not appear to be enabled in gitlab-development-kit
:
$ git push -u -o ci-skip origin HEAD
fatal: the receiving end does not support push options
fatal: The remote end hung up unexpectedly
I've confirmed this works as expected on my Gitlab Omnibus server, where /opt/gitlab/embedded/etc/gitconfig
is as follows:
[pack]
threads = 1
[receive]
fsckObjects = true
advertisePushOptions = true
[repack]
writeBitmaps = true
[transfer]
hideRefs=^refs/tmp/
hideRefs=^refs/keep-around/
In source installations, the git
user's global git config (/home/git/.gitconfig
) holds these options.
- Where is the global
gitconfig
ingitlab-development-kit
? - If there isn't one, how should GitLab set these options?
I managed to work around this by setting /home/jreinhart/.gitconfig
(that is, my dev user):
[receive]
advertisepushoptions = true