The call to: git symbolic-ref HEAD --short returns only the branch name The call to: git branch -v returns all the branches, the hash, and the last commit. Is it really necessary? Can't be replaced with git branch -l ? Also the first call ret = self.run_git(["symbolic-ref", "HEAD"...