1 2 3 4 5 6 7 8 9
module Gitlab module Git BLANK_SHA = '0' * 40 def self.extract_ref_name(ref) ref.gsub(/\Arefs\/(tags|heads)\//, '') end end end