diff --git a/git_review/cmd.py b/git_review/cmd.py index 8553158e..c879bf0f 100644 --- a/git_review/cmd.py +++ b/git_review/cmd.py @@ -720,7 +720,7 @@ def query_reviews_over_ssh(remote_url, project=None, change=None, print("Query gerrit %s %s" % (remote_url, query)) output = run_command_exc( exception, - "ssh", "-x" + port_data, userhost, + os.environ.get("GIT_SSH", "ssh"), "-x" + port_data, userhost, "gerrit", "query", "--format=JSON %s" % query) if VERBOSE: