def ShortBranchName(branch):
    "Convert a name like 'refs/heads/foo' to just 'foo'."
    return branch.replace('refs/heads/', '', 1)
Convert a name like 'refs/heads/foo' to just 'foo'.
def ShortBranchName(branch):
    
    return branch.replace('refs/heads/', , 1)