Use GIT_SSH for the SSH executable

Git allows setting the SSH client via the GIT_SSH environmental variable.
Honor it in git-review as well.

Story: 1024054
Task: 537
Change-Id: I760335ebc8e45749227f4328aba9edbb52196d3b
Co-Authored-By: Dr. Jens Harbott <frickler@offenerstapel.de>
This commit is contained in:
Bartosz Dziewoński 2023-07-30 17:00:58 +02:00 committed by Jeremy Stanley
parent 904d175d19
commit 21d9ceb5a5

View File

@ -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: