diff --git a/guix/build/git.scm b/guix/build/git.scm index 4245594c38e3e54ff18ad8a1d6ed9a67264a586f..68b132265b72b0094da30d2aaa12d81c2923563a 100644 --- a/guix/build/git.scm +++ b/guix/build/git.scm @@ -31,6 +31,11 @@ (define* (git-fetch url commit directory #: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")