Create MR via tag from issue got wrong commit positon

Summary

Create MR via tag from issue got HEAD commit

Steps to reproduce

  1. Create an issue
  2. Open dropdown Create merge request
  3. Type tag name v2.0.0 into Source input
  4. Submit create
  5. Clone new branch with git checkout -b 1-test origin/1-test
  6. git log

Example Project

git clone git@gitlab.com:waitingsong/testing.git
git fetch origin
git checkout -b 1-test origin/1-test
git log

What is the current bug behavior?

Output:

commit c78519f4780f1bbddeeab35bbbc68a10716905fa (HEAD -> 1-test, tag: v3.0.0, origin/master, origin/1-test, master)

What is the expected correct behavior?

Should blow is latest:

commit 16a600a6257d800099d1919d3695cea2ccfa2eb7 (tag: v2.0.0)

Output of checks

This bug happens on GitLab.com

Assignee Loading
Time tracking Loading