gitlab-org--gitlab-foss/lib/gitlab/git.rb
2015-01-15 10:26:33 -08:00

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