Skip to content
Snippets Groups Projects
Unverified Commit cca6941f authored by Oleg Pykhalov's avatar Oleg Pykhalov Committed by Ludovic Courtès
Browse files

pull: Add GUIX_PULL_URL environment variable.


* guix/scripts/pull.scm (%repository-url): Add GUIX_PULL_URL environment
  variable.
* doc/guix.texi (Invoking guix pull): Mention GUIX_PULL_URL.

Signed-off-by: default avatarLudovic Courtès <ludo@gnu.org>
parent 38033318
No related branches found
No related tags found
No related merge requests found
...@@ -2532,8 +2532,10 @@ Produce verbose output, writing build logs to the standard error output. ...@@ -2532,8 +2532,10 @@ Produce verbose output, writing build logs to the standard error output.
@item --url=@var{url} @item --url=@var{url}
Download Guix from the Git repository at @var{url}. Download Guix from the Git repository at @var{url}.
   
@vindex GUIX_PULL_URL
By default, the source is taken from its canonical Git repository at By default, the source is taken from its canonical Git repository at
@code{gnu.org}, for the stable branch of Guix. @code{gnu.org}, for the stable branch of Guix. To use a different source,
set the @code{GUIX_PULL_URL} environment variable.
   
@item --commit=@var{commit} @item --commit=@var{commit}
Deploy @var{commit}, a valid Git commit ID represented as a hexadecimal Deploy @var{commit}, a valid Git commit ID represented as a hexadecimal
......
...@@ -82,7 +82,7 @@ (define (ensure-guile-git!) ...@@ -82,7 +82,7 @@ (define (ensure-guile-git!)
(resolve-interface '(git)))) (resolve-interface '(git))))
(define %repository-url (define %repository-url
"https://git.savannah.gnu.org/git/guix.git") (or (getenv "GUIX_PULL_URL") "https://git.savannah.gnu.org/git/guix.git"))
;;; ;;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment