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
  • #6070

Closed
Open
Created Jan 16, 2014 by Administrator@rootOwner

"Create Merge Request" button is displayed after merge request is closed.

Created by: dpursehouse

  1. Checkout the master branch (assuming it's up to date with latest head of master on remote):

git checkout master

  1. Push a new branch to the remote at gitlab:

git push origin master:new-branch

Note that this new branch should be the same as master, with no new commits.

  1. On the project page, it shows that you've created the branch and shows the "Create Merge Request" link.
  2. Create the merge request and note that it is showing nothing to merge.
  3. On the local repository fetch the new branch, check it out, and push a new commit to the new branch on the remote:

git fetch origin git checkout origin/new-branch touch test.txt git add test.txt git commit -m "New commit" git push origin HEAD:refs/heads/new-branch

  1. Refresh the merge request page and see that it now shows the commit that you just pushed.
  2. Close the merge request (without actually merging).
  3. Go back to the project home page and see that it shows the "Create Merge Request" button again for the commit that was pushed at step 5.

Note: This is possibly same as (or similar to) #6034 (closed)

Assignee
Assign to
Time tracking