Skip to content

Commit

Permalink
Don't allow git fetch to start ControlMaster
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Doug Anderson authored and spearce committed Oct 29, 2010
1 parent 06d029c commit ec1df9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_ssh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
exec ssh -o "ControlPath $REPO_SSH_SOCK" "$@"
exec ssh -o "ControlMaster no" -o "ControlPath $REPO_SSH_SOCK" "$@"

0 comments on commit ec1df9b

Please sign in to comment.