summaryrefslogtreecommitdiffstats
path: root/git_ssh
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-04-10 18:53:46 -0700
committerShawn O. Pearce <sop@google.com>2009-04-18 16:50:47 -0700
commitfb2316146f6e3036e0cc3e08653920964a428a15 (patch)
treef19c5c65a035f547ada03496f1576524e4602665 /git_ssh
parent8bd5e60b16080008771afcaa7de7084487b84780 (diff)
downloadgit-repo-fb2316146f6e3036e0cc3e08653920964a428a15.tar.gz
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>
Diffstat (limited to 'git_ssh')
-rwxr-xr-xgit_ssh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git_ssh b/git_ssh
new file mode 100755
index 00000000..63aa63c2
--- /dev/null
+++ b/git_ssh
@@ -0,0 +1,2 @@
1#!/bin/sh
2exec ssh -o "ControlPath $REPO_SSH_SOCK" "$@"