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