summaryrefslogtreecommitdiffstats
path: root/git_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_config.py')
-rw-r--r--git_config.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/git_config.py b/git_config.py
index 1d8d1363..d7fef8ca 100644
--- a/git_config.py
+++ b/git_config.py
@@ -520,6 +520,14 @@ class Remote(object):
520 return self.url.replace(longest, longestUrl, 1) 520 return self.url.replace(longest, longestUrl, 1)
521 521
522 def PreConnectFetch(self): 522 def PreConnectFetch(self):
523 """Run any setup for this remote before we connect to it.
524
525 In practice, if the remote is using SSH, we'll attempt to create a new
526 SSH master session to it for reuse across projects.
527
528 Returns:
529 Whether the preconnect phase for this remote was successful.
530 """
523 connectionUrl = self._InsteadOf() 531 connectionUrl = self._InsteadOf()
524 return ssh.preconnect(connectionUrl) 532 return ssh.preconnect(connectionUrl)
525 533