diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -969,11 +969,19 @@ class Project(object): | |||
969 | def _RemoteFetch(self, name=None): | 969 | def _RemoteFetch(self, name=None): |
970 | if not name: | 970 | if not name: |
971 | name = self.remote.name | 971 | name = self.remote.name |
972 | |||
973 | ssh_proxy = False | ||
974 | if self.GetRemote(name).PreConnectFetch(): | ||
975 | ssh_proxy = True | ||
976 | |||
972 | cmd = ['fetch'] | 977 | cmd = ['fetch'] |
973 | if not self.worktree: | 978 | if not self.worktree: |
974 | cmd.append('--update-head-ok') | 979 | cmd.append('--update-head-ok') |
975 | cmd.append(name) | 980 | cmd.append(name) |
976 | return GitCommand(self, cmd, bare = True).Wait() == 0 | 981 | return GitCommand(self, |
982 | cmd, | ||
983 | bare = True, | ||
984 | ssh_proxy = ssh_proxy).Wait() == 0 | ||
977 | 985 | ||
978 | def _Checkout(self, rev, quiet=False): | 986 | def _Checkout(self, rev, quiet=False): |
979 | cmd = ['checkout'] | 987 | cmd = ['checkout'] |