From 11cf3bae58ff3f760460dee79a64b851567b017b Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Tue, 18 Dec 2018 15:33:20 -0800 Subject: [PATCH] Add hint to just "git remote rename origin gerrit" when no .gitreview ... because it Just Works with absolutely zero configuration when cloning with ssh:// Change-Id: I7a413704c4a567e397b5bb6075677175b8997704 --- git_review/cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git_review/cmd.py b/git_review/cmd.py index f36eec25..a64a5639 100644 --- a/git_review/cmd.py +++ b/git_review/cmd.py @@ -795,8 +795,8 @@ def check_remote(branch, remote, scheme, hostname, port, project, printwrap("Please set the push-url on your origin remote to the " "location of your gerrit server and try again") else: - printwrap("Please manually create a remote " - "named \"%s\" and try again." % remote) + printwrap("Please manually create a remote named \"%s\" or " + "rename the default one and try again." % remote) sys.exit(1) # Gerrit remote not present, try to add it