Return the current branch name

def current_branch(self):
        """Return the current branch name"""
        branch_name = git(self.gitdir, self.gitwd, "symbolic-ref", "HEAD")
        return branch_name.replace('refs/heads/', '').strip()