def dump(): """Print raw config info.""" print("-----Git Branches-----") git.branch("-vv", _out=gitout) print() print("-----Git Remotes-----") git.remote("-v", "show", _out=gitout)
def using_ssh_urls(): try: return "git@github" in git.remote("-v") except sh.ErrorReturnCode: return False