class Bundler::GemHelper

def current_branch

def current_branch
  # We can replace this with `git branch --show-current` once we drop support for git < 2.22.0
  sh(%w[git rev-parse --abbrev-ref HEAD]).gsub(%r{\Aheads/}, "").strip
end