mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
git: Support HTTP and HTTPS proxies.
This allows 'guix pull' and similar to fetch code over a proxy. * guix/git.scm (make-default-fetch-options): Pass #:proxy-url.
This commit is contained in:
parent
298f9d29d6
commit
8425a9b60a
1 changed files with 5 additions and 2 deletions
|
@ -161,11 +161,14 @@ (define %
|
|||
(define (make-default-fetch-options)
|
||||
"Return the default fetch options."
|
||||
(let ((auth-method (%make-auth-ssh-agent)))
|
||||
;; The #:transfer-progress option appeared in Guile-Git 0.4.0. Omit it
|
||||
;; when using an older version.
|
||||
;; The #:transfer-progress and #:proxy-url options appeared in Guile-Git
|
||||
;; 0.4.0. Omit them when using an older version.
|
||||
(catch 'wrong-number-of-args
|
||||
(lambda ()
|
||||
(make-fetch-options auth-method
|
||||
;; Guile-Git doesn't distinguish between these.
|
||||
#:proxy-url (or (getenv "http_proxy")
|
||||
(getenv "https_proxy"))
|
||||
#:transfer-progress
|
||||
(and (isatty? (current-error-port))
|
||||
show-progress)))
|
||||
|
|
Loading…
Reference in a new issue