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>
2 lines
64 B
Bash
Executable file
2 lines
64 B
Bash
Executable file
#!/bin/sh
|
|
exec ssh -o 'ControlPath ~/.ssh/master-%r@%h:%p' "$@"
|