class Bundler::Source::Git::GitProxy

def branch

def branch
  @branch ||= allowed_with_path do
    git("rev-parse", "--abbrev-ref", "HEAD", :dir => path).strip
  end
end