1
0
Fork 0
git-repo/git_ssh
Shawn O. Pearce 13cb07d25f 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-10 18:53:46 -07:00

2 lines
64 B
Bash
Executable file

#!/bin/sh
exec ssh -o 'ControlPath ~/.ssh/master-%r@%h:%p' "$@"