This website requires JavaScript.
Explore
Help
Sign In
RepoDemo
/
git-repo
Watch
1
Star
0
Fork
0
You've already forked git-repo
mirror of
https://github.com/Dev-Wiki/git-repo.git
synced
2025-02-23 23:27:27 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
4d5bb68d58
git-repo
/
git_ssh
3 lines
78 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Automatically use SSH control master support during sync By creating a background ssh "control master" process which lives for the duration of our sync cycle we can easily cut the time for a no-op sync of 132 projects from 60s to 18s. Bug: REPO-11 Signed-off-by: Shawn O. Pearce <sop@google.com>
2009-04-11 09:53:46 +08:00
#!/bin/sh
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>
2010-10-28 08:13:07 +08:00
exec ssh -o "ControlMaster no" -o "ControlPath $REPO_SSH_SOCK" "$@"
Reference in New Issue
Copy Permalink