Takes into account new gitlab-shell/lib/gitlab_net.rb code.