Commit 63da5190 authored by Matija Čupić's avatar Matija Čupić

Make full ref in Repository#resolve_ref explicit

parent a1be5809
......@@ -191,7 +191,7 @@ class Repository
Gitlab::Git::TAG_REF_PREFIX + ref
elsif branch_exists?(ref)
Gitlab::Git::BRANCH_REF_PREFIX + ref
else
elsif Gitlab::Git.tag_ref?(ref) || Gitlab::Git.branch_ref?(ref)
ref
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment