Skip to content

GIT version 2.11.0 - Can't push to protected branch as master or developer ( with correct permissions and branch settings )

Summary

With GIT version 2.11.0 installed in combination with Gitlab v. 8.11.x - 8.14.2 Master or Developer are not able to push to protected branches even if they have the correct permissions. Owners still can push. This is important due to the fact, that e.g. Ubuntu ships GIT v. 2.11.0 with latest updates.

Steps to reproduce

  • Gitlab v. 8.14.2

  • GIT v. 2.11.0

  • allow pushing on protected branch for Master only.

  • grant a user Master permission for project.

  • push to protected branch with that user.

Expected behavior

User should be able to push the changes.

Actual behavior

Push attempt gets rejected due to not having the correct rights to push on a protected branch.

Relevant logs and/or screenshots

not_working_gitlab_pushnot_working_gitlab_envnot_working_gitlab_branch_settings

Output of checks

Results of GitLab application Check

everything o.k. all checks are successful.

...
gitlab-shell self-check successful
...
Checking GitLab ... Finished

Results of GitLab environment info

Please see attachment.

Possible fixes

-> Downgrade to GIT Version 2.7.4. - which is not shipped via apt-get in e.g. Ubunut -> has to be installed via source