summaryrefslogtreecommitdiffstats
path: root/git_ssh
diff options
context:
space:
mode:
authorDoug Anderson <dianders@google.com>2010-10-27 17:13:07 -0700
committerShawn O. Pearce <sop@google.com>2010-10-29 08:15:14 -0700
commitec1df9b7f6310ce5dd9432b727eb9f7bde9f2796 (patch)
treeea0c10b715d35b6a9b4f92c73b2732b0c53f4966 /git_ssh
parent06d029c1c8c06a6d446b7cc4d5e763ff0754b149 (diff)
downloadgit-repo-ec1df9b7f6310ce5dd9432b727eb9f7bde9f2796.tar.gz
Don't allow git fetch to start ControlMaster
To avoid connectivity problems, we don't want the ssh process that is started by git fetch to become a ControlMaster for the overall sync task. If it did, we would lose connectivity when git fetch was finished with the current project, causing later projects to not fetch efficiently. Change-Id: I8d0dcf9b361276ff8c8b5a6324cbd4a501e9c4dd Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'git_ssh')
-rwxr-xr-xgit_ssh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_ssh b/git_ssh
index 63aa63c2..b1ab521e 100755
--- a/git_ssh
+++ b/git_ssh
@@ -1,2 +1,2 @@
1#!/bin/sh 1#!/bin/sh
2exec ssh -o "ControlPath $REPO_SSH_SOCK" "$@" 2exec ssh -o "ControlMaster no" -o "ControlPath $REPO_SSH_SOCK" "$@"