[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: git: Support HTTP and HTTPS proxies.
From: |
guix-commits |
Subject: |
05/07: git: Support HTTP and HTTPS proxies. |
Date: |
Thu, 22 Oct 2020 11:11:33 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 8425a9b60a75d95000634bee518d9fd1cf1b4d8b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Oct 12 22:42:41 2020 +0200
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.
---
guix/git.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/guix/git.scm b/guix/git.scm
index b81a011..364b499 100644
--- a/guix/git.scm
+++ b/guix/git.scm
@@ -161,11 +161,14 @@ the 'SSL_CERT_FILE' and 'SSL_CERT_DIR' environment
variables."
(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)))
- branch master updated (2f107f2 -> cad55e9), guix-commits, 2020/10/22
- 02/07: gnu: Add lcov-cobertura., guix-commits, 2020/10/22
- 06/07: gnu: libjaylink: Update to 0.2.0, guix-commits, 2020/10/22
- 05/07: git: Support HTTP and HTTPS proxies.,
guix-commits <=
- 03/07: git: Require Guile-Git 0.3.0 or later., guix-commits, 2020/10/22
- 01/07: graph: Don't insist on "Helvetica" in the Graphviz backend., guix-commits, 2020/10/22
- 04/07: git: Display a progress bar while fetching a repo., guix-commits, 2020/10/22
- 07/07: gnu: openocd: Update to 9a877a83a1c8b1f105cdc0de46c5cbc4d9e8799e., guix-commits, 2020/10/22