diff --git a/library/source_control/git b/library/source_control/git index 768e315788..2eb2add185 100644 --- a/library/source_control/git +++ b/library/source_control/git @@ -142,8 +142,8 @@ import re import tempfile def write_ssh_wrapper(): - fh = tempfile.NamedTemporaryFile(delete=False) - wrapper_path = fh.name + fd, wrapper_path = tempfile.mkstemp() + fh = os.fdopen(fd, 'w+b') template = """#!/bin/sh if [ -z "$GIT_SSH_OPTS" ]; then BASEOPTS=""