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:
parent
904d175d19
commit
21d9ceb5a5
@ -720,7 +720,7 @@ def query_reviews_over_ssh(remote_url, project=None, change=None,
|
|||||||
print("Query gerrit %s %s" % (remote_url, query))
|
print("Query gerrit %s %s" % (remote_url, query))
|
||||||
output = run_command_exc(
|
output = run_command_exc(
|
||||||
exception,
|
exception,
|
||||||
"ssh", "-x" + port_data, userhost,
|
os.environ.get("GIT_SSH", "ssh"), "-x" + port_data, userhost,
|
||||||
"gerrit", "query",
|
"gerrit", "query",
|
||||||
"--format=JSON %s" % query)
|
"--format=JSON %s" % query)
|
||||||
if VERBOSE:
|
if VERBOSE:
|
||||||
|
Loading…
Reference in New Issue
Block a user