summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-04-21 08:02:04 -0700
committerShawn O. Pearce <sop@google.com>2009-04-21 08:28:06 -0700
commiteb7af87bcfc67798b58a99422988b9c368d7d642 (patch)
tree4c72901e9c2bf8b44242ca4076fb24fd962ae8b8
parent938d608c9c47401fbdb60f3188c718e2f2569bd0 (diff)
downloadgit-repo-eb7af87bcfc67798b58a99422988b9c368d7d642.tar.gz
Document the SSH ControlMaster behavior of repo sync
Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--subcmds/sync.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index b5cc604e..c61c3bb4 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -53,6 +53,35 @@ The -d/--detach option can be used to switch specified projects
53back to the manifest revision. This option is especially helpful 53back to the manifest revision. This option is especially helpful
54if the project is currently on a topic branch, but the manifest 54if the project is currently on a topic branch, but the manifest
55revision is temporarily needed. 55revision is temporarily needed.
56
57SSH Connections
58---------------
59
60If at least one project remote URL uses an SSH connection (ssh://,
61git+ssh://, or user@host:path syntax) repo will automatically
62enable the SSH ControlMaster option when connecting to that host.
63This feature permits other projects in the same '%prog' session to
64reuse the same SSH tunnel, saving connection setup overheads.
65
66To disable this behavior on UNIX platforms, set the GIT_SSH
67environment variable to 'ssh'. For example:
68
69 export GIT_SSH=ssh
70 %prog
71
72Compatibility
73~~~~~~~~~~~~~
74
75This feature is automatically disabled on Windows, due to the lack
76of UNIX domain socket support.
77
78This feature is not compatible with url.insteadof rewrites in the
79user's ~/.gitconfig. '%prog' is currently not able to perform the
80rewrite early enough to establish the ControlMaster tunnel.
81
82If the remote SSH daemon is Gerrit Code Review, version 2.0.10 or
83later is required to fix a server side protocol bug.
84
56""" 85"""
57 86
58 def _Options(self, p): 87 def _Options(self, p):