Commit 7bba982f authored by Steve Borho's avatar Steve Borho
Browse files

sync: add --insecure to command line if https and host is in [insecurehosts]

parent 5a7046188cea
......@@ -532,6 +532,12 @@ class SyncWidget(QWidget):
_('An URL must be selected for this operation.'),
user, host, port, folder, passwd, scheme = self.urlparse(url)
if scheme == 'https':
if self.repo.ui.configbool('insecurehosts', host):
safeurl = self.currentUrl(True)
display = ' '.join(cmdline + [safeurl]).replace('\n', '^M')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment