diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-11-27 16:45:25 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-12-08 21:28:56 +0300 |
commit | 63da51900c205981fc12cda25778265d78b607e5 (patch) | |
tree | 1c0d7a0f698d0ee38e4ebed8fd74b51264c1d377 /app/models/repository.rb | |
parent | a1be58097943f7f568de6a90aa12cf7452ac2f0a (diff) |
Make full ref in Repository#resolve_ref explicit
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 9e01f7f0df5..3db49a5fce0 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -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 |