Make insecure option work with curl AND git. (#1786)

This commit is contained in:
Todd Gamblin
2016-10-11 23:13:40 -07:00
committed by GitHub
parent a6f85f51d0
commit 488e1bab2c
5 changed files with 47 additions and 29 deletions

View File

@@ -161,7 +161,7 @@ def main():
# If the user asked for it, don't check ssl certs.
if args.insecure:
tty.warn("You asked for --insecure. Will NOT check SSL certificates.")
spack.curl.add_default_arg('-k')
spack.insecure = True
# Try to load the particular command asked for and run it
command = spack.cmd.get_command(args.command.replace('-', '_'))