diff options
author | Shawn O. Pearce <sop@google.com> | 2009-04-10 18:53:46 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-04-18 16:50:47 -0700 |
commit | fb2316146f6e3036e0cc3e08653920964a428a15 (patch) | |
tree | f19c5c65a035f547ada03496f1576524e4602665 /git_ssh | |
parent | 8bd5e60b16080008771afcaa7de7084487b84780 (diff) | |
download | git-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-x | git_ssh | 2 |
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 | ||
2 | exec ssh -o "ControlPath $REPO_SSH_SOCK" "$@" | ||