From ff5ef6c7583f88d8f7bb6062605455c0f3ecdf53 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 14 Apr 2014 15:44:12 +0000 Subject: Set GIT_SSL_NO_VERIFY=true when running git --- lorry | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lorry b/lorry index 2339c9f..d16abfc 100755 --- a/lorry +++ b/lorry @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright (C) 2013 Codethink Limited +# Copyright (C) 2013-2014 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -299,6 +299,10 @@ class Lorry(cliapp.Application): return dest def mirror_git(self, project_name, dirname, gitdir, spec): + # Turn off git's SSL/TLS certificate verification, until Baserock + # has an CA management infrastructure. + os.environ['GIT_SSL_NO_VERIFY'] = 'true' + if not os.path.exists(gitdir): self.progress('.. initialising git dir') self.run_program(['git', 'init', '--bare', gitdir]) -- cgit v1.2.1