Fixes #6567 put the git wrapper script in the module temp dir

This commit is contained in:
James Tanner 2014-03-19 10:30:10 -04:00
parent 9efcbd8ef2
commit 6c8980c1a4

View file

@ -143,7 +143,8 @@ import re
import tempfile
def write_ssh_wrapper():
fd, wrapper_path = tempfile.mkstemp()
module_dir = get_module_path()
fd, wrapper_path = tempfile.mkstemp(prefix=module_dir + '/')
fh = os.fdopen(fd, 'w+b')
template = """#!/bin/sh
if [ -z "$GIT_SSH_OPTS" ]; then