# File lib/gitlab_git/ref.rb, line 23 def self.extract_branch_name(str) str.gsub(/\Arefs\/heads\//, '') end