summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-14 15:44:12 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-14 15:44:12 +0000
commitff5ef6c7583f88d8f7bb6062605455c0f3ecdf53 (patch)
tree8a1d9c62a9a2c7feb43f0c72b81ceb516b096684
parent5afef32028fbcacb7acc3d0318407169dd2353de (diff)
downloadlorry-ff5ef6c7583f88d8f7bb6062605455c0f3ecdf53.tar.gz
Set GIT_SSL_NO_VERIFY=true when running git
-rwxr-xr-xlorry6
1 files changed, 5 insertions, 1 deletions
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])