diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-14 15:44:12 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-14 15:44:12 +0000 |
commit | ff5ef6c7583f88d8f7bb6062605455c0f3ecdf53 (patch) | |
tree | 8a1d9c62a9a2c7feb43f0c72b81ceb516b096684 | |
parent | 5afef32028fbcacb7acc3d0318407169dd2353de (diff) | |
download | lorry-ff5ef6c7583f88d8f7bb6062605455c0f3ecdf53.tar.gz |
Set GIT_SSL_NO_VERIFY=true when running git
-rwxr-xr-x | lorry | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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]) |