aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-05-08 19:44:44 +0200
committerLudovic Courtès <ludo@gnu.org>2014-05-08 23:42:15 +0200
commit03178aec1dc63c630374b1aed2178140c185b9f5 (patch)
tree855868e02d939cd63087f833a6f4a1fd23a9ff76
parent8ede638c4b84d5e26844fdc5726992ed78244cfd (diff)
downloadgnu-guix-03178aec1dc63c630374b1aed2178140c185b9f5.tar
gnu-guix-03178aec1dc63c630374b1aed2178140c185b9f5.tar.gz
git-download: Disable TLS certificate verification.
* guix/build/git.scm (git-fetch): Add 'setenv' call.
-rw-r--r--guix/build/git.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/build/git.scm b/guix/build/git.scm
index 4245594c38..68b132265b 100644
--- a/guix/build/git.scm
+++ b/guix/build/git.scm
@@ -31,6 +31,11 @@
#:key (git-command "git"))
"Fetch COMMIT from URL into DIRECTORY. COMMIT must be a valid Git commit
identifier. Return #t on success, #f otherwise."
+
+ ;; Disable TLS certificate verification. The hash of the checkout is known
+ ;; in advance anyway.
+ (setenv "GIT_SSL_NO_VERIFY" "true")
+
(and (zero? (system* git-command "clone" url directory))
(with-directory-excursion directory
(system* git-command "tag" "-l")