summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source_control/git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source_control/git.py b/source_control/git.py
index 7f0fcd86..c3b74057 100644
--- a/source_control/git.py
+++ b/source_control/git.py
@@ -297,7 +297,7 @@ def write_ssh_wrapper():
except (IOError, OSError):
fd, wrapper_path = tempfile.mkstemp()
fh = os.fdopen(fd, 'w+b')
- template = """#!/bin/sh
+ template = b("""#!/bin/sh
if [ -z "$GIT_SSH_OPTS" ]; then
BASEOPTS=""
else
@@ -309,7 +309,7 @@ if [ -z "$GIT_KEY" ]; then
else
ssh -i "$GIT_KEY" $BASEOPTS "$@"
fi
-"""
+""")
fh.write(template)
fh.close()
st = os.stat(wrapper_path)