gitlab-org--gitlab-foss/lib/gitlab/git.rb

10 lines
151 B
Ruby
Raw Normal View History

module Gitlab
module Git
BLANK_SHA = '0' * 40
def self.extract_ref_name(ref)
ref.gsub(/\Arefs\/(tags|heads)\//, '')
end
end
end