Make full ref in Repository#resolve_ref explicit

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册