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.'),
parent=self)
return
user, host, port, folder, passwd, scheme = self.urlparse(url)
if scheme == 'https':
if self.repo.ui.configbool('insecurehosts', host):
cmdline.append('--insecure')
safeurl = self.currentUrl(True)
display = ' '.join(cmdline + [safeurl]).replace('\n', '^M')
cmdline.append(url)
......
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