Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9478

Closed
Open
Created Jul 23, 2015 by Administrator@rootOwner

Force Push to non protected branches by Developer or Owner fails

Created by: mmilkin

git checkout -b 'test_branch'
vi test.file
git branch
git add test.file 
git commit -m "adding file"
git push origin test_branch 
git rebase origin/master 
....
git push origin +test_branch


Counting objects: 240, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (219/219), done.
Writing objects: 100% (240/240), 45.70 KiB | 0 bytes/s, done.
Total 240 (delta 155), reused 21 (delta 21)
remote: error: denying non-fast-forward refs/heads/test_branch (you should pull first)
To git@host.com:app/app.git
 ! [remote rejected] test_branch -> test_branch (non-fast-forward)
error: failed to push some refs to 'git@host.com:app/app.git'

It looks like GitLab 7.12.2 30bffd58 has a bug where owner or developer can not push the branch

Assignee
Assign to
Time tracking