Commit ba18fc1d authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Heptapod: made Git executable available as attribute

This is from the client side, but still, depending on context,
the proper one to use may not be on path.

--HG--
branch : stable
parent 2344f5b0369a
......@@ -61,7 +61,8 @@ def test_owner_push_pull(test_project, tmpdir):
git_ssh_cmd, git_ssh_address = test_project.git_ssh_params(
test_project.owner)
git_clone = tmpdir.join('git_ssh_clone')
git = subprocess.Popen(['git', 'clone', git_ssh_address, str(git_clone)],
git = subprocess.Popen([test_project.heptapod.git_executable,
'clone', git_ssh_address, str(git_clone)],
env={'GIT_SSH_COMMAND': git_ssh_cmd},
stderr=subprocess.PIPE,
stdout=subprocess.PIPE)
......
......@@ -62,6 +62,8 @@ class Heptapod:
"""Time to wait after we've had a first non error HTTP response.
"""
git_executable = 'git'
def __init__(self, url, ssh_user, ssh_port,
reverse_call_host=None,
wait_after_first_response=0,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment