From 4df4159413a4bf30a891f21cd69202e8746c8fea Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 22 Jan 2015 19:04:57 +0100 Subject: Removed Git.sshkey() as it couldn't be distributed properly. However, I kept information on how to achieve the same thing with `custom_environment()` in the test. Related to #234 --- git/test/test_docs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/test/test_docs.py') diff --git a/git/test/test_docs.py b/git/test/test_docs.py index 175e728a..8dfef1c6 100644 --- a/git/test/test_docs.py +++ b/git/test/test_docs.py @@ -438,8 +438,8 @@ class Tutorials(TestBase): # ![31-test_references_and_objects] # [32-test_references_and_objects] - private_key_file = os.path.join(rw_dir, 'id_rsa_deployment_key') - with repo.git.sshkey(private_key_file): + ssh_executable = os.path.join(rw_dir, 'my_ssh_executable.sh') + with repo.git.custom_environment(GIT_SSH=ssh_executable): # Note that we don't actually make the call here, as our test-setup doesn't permit it to # succeed. # It will in your case :) -- cgit v1.2.1