diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-11-15 21:28:17 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-12-08 19:28:34 +0100 |
commit | 837ab8c5d83243db8efe1cec1c6e001d1cbeb43f (patch) | |
tree | cf2dc96a8f526f428090e36f2bf6c93b1f236b5c /app | |
parent | 2edc02143b2d361275fb97ce2904a58e7dc8ff38 (diff) | |
download | gitlab-ce-837ab8c5d83243db8efe1cec1c6e001d1cbeb43f.tar.gz |
Make HasRef#git_ref public
Diffstat (limited to 'app')
-rw-r--r-- | app/models/concerns/has_ref.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/concerns/has_ref.rb b/app/models/concerns/has_ref.rb index 79816841f7f..d7089294efc 100644 --- a/app/models/concerns/has_ref.rb +++ b/app/models/concerns/has_ref.rb @@ -7,15 +7,11 @@ module HasRef !tag? end - private - def git_ref if branch? Gitlab::Git::BRANCH_REF_PREFIX + ref.to_s elsif tag? Gitlab::Git::TAG_REF_PREFIX + ref.to_s - else - raise ArgumentError, 'Invalid pipeline type!' end end end |