def METHOD_NAME(package):
    dname = os.path.dirname(inspect.getfile(package))
    git_sha = Popen(
        'git rev-parse HEAD',
        cwd=dname, shell=True, stdout=PIPE).communicate()[0].strip()
    git_branch = Popen(
        'git rev-parse --abbrev-ref HEAD',
        cwd=dname, shell=True, stdout=PIPE).communicate()[0].strip()
    return '%s (%s)' % (git_sha, git_branch)