"Create Merge Request" button is displayed after merge request is closed.
Created by: dpursehouse
- Checkout the master branch (assuming it's up to date with latest head of master on remote):
git checkout master
- 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.
- On the project page, it shows that you've created the branch and shows the "Create Merge Request" link.
- Create the merge request and note that it is showing nothing to merge.
- 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
- Refresh the merge request page and see that it now shows the commit that you just pushed.
- Close the merge request (without actually merging).
- 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)