class Bundler::Source::Git::GitProxy

def branch

def branch
  @branch ||= allowed_in_path do
    git("branch") =~ /^\* (.*)$/ && $1.strip
  end
end