git_connect(): use common return point