git-download: Disable TLS certificate verification.
* guix/build/git.scm (git-fetch): Add 'setenv' call.
This commit is contained in:
		
							parent
							
								
									8ede638c4b
								
							
						
					
					
						commit
						03178aec1d
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -31,6 +31,11 @@
 | 
				
			||||||
                    #:key (git-command "git"))
 | 
					                    #:key (git-command "git"))
 | 
				
			||||||
  "Fetch COMMIT from URL into DIRECTORY.  COMMIT must be a valid Git commit
 | 
					  "Fetch COMMIT from URL into DIRECTORY.  COMMIT must be a valid Git commit
 | 
				
			||||||
identifier.  Return #t on success, #f otherwise."
 | 
					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))
 | 
					  (and (zero? (system* git-command "clone" url directory))
 | 
				
			||||||
       (with-directory-excursion directory
 | 
					       (with-directory-excursion directory
 | 
				
			||||||
         (system* git-command "tag" "-l")
 | 
					         (system* git-command "tag" "-l")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue