Revert "Use to_s.start_with? in tag/branch ref method"

This reverts commit ec4730478b798270781257913ee4cede673d4d4e.
This commit is contained in:
Matija Čupić 2018-11-23 00:21:29 +01:00
parent 350ea9c55a
commit d27de096c2
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
1 changed files with 2 additions and 2 deletions

View File

@ -54,11 +54,11 @@ module Gitlab
end
def tag_ref?(ref)
ref.to_s.start_with?(TAG_REF_PREFIX)
ref =~ /^#{TAG_REF_PREFIX}.+/
end
def branch_ref?(ref)
ref.to_s.start_with?(BRANCH_REF_PREFIX)
ref =~ /^#{BRANCH_REF_PREFIX}.+/
end
def blank_ref?(ref)