From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzfdz-0007Ws-NA for guix-patches@gnu.org; Wed, 04 Oct 2017 05:07:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzfdu-00018p-IZ for guix-patches@gnu.org; Wed, 04 Oct 2017 05:07:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzfdu-00018b-E8 for guix-patches@gnu.org; Wed, 04 Oct 2017 05:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzfdu-0004Zs-7s for guix-patches@gnu.org; Wed, 04 Oct 2017 05:07:02 -0400 Subject: [bug#28699] [PATCH] pull: Add GUIX_PULL_URL environment variable. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzfcw-0007Ak-IH for guix-patches@gnu.org; Wed, 04 Oct 2017 05:06:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzfcr-0000E5-Gn for guix-patches@gnu.org; Wed, 04 Oct 2017 05:06:02 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:44684) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzfcr-0000Br-9e for guix-patches@gnu.org; Wed, 04 Oct 2017 05:05:57 -0400 Received: by mail-lf0-x234.google.com with SMTP id l196so12626186lfl.1 for ; Wed, 04 Oct 2017 02:05:56 -0700 (PDT) Received: from magnolia (ppp78-37-128-42.pppoe.avangarddsl.ru. [78.37.128.42]) by smtp.gmail.com with ESMTPSA id 63sm2374677lfr.65.2017.10.04.02.05.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Oct 2017 02:05:54 -0700 (PDT) From: Oleg Pykhalov Date: Wed, 04 Oct 2017 12:05:53 +0300 Message-ID: <87d1632sge.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-pull-Add-GUIX_PULL_URL-environment-variable.patch Content-Description: [PATCH] pull: Add GUIX_PULL_URL environment variable. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28699@debbugs.gnu.org >From 2638c08eef0e8c173111ced6bbc95167f6130fd7 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Wed, 4 Oct 2017 12:01:41 +0300 Subject: [PATCH] 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. --- doc/guix.texi | 3 ++- guix/scripts/pull.scm | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index f0a59a6b4..0b6d5cdee 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -2533,7 +2533,8 @@ Produce verbose output, writing build logs to the standard error output. Download Guix from the Git repository at @var{url}. 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, +provide @code{GUIX_PULL_URL} environment variable. @item --commit=@var{commit} Deploy @var{commit}, a valid Git commit ID represented as a hexadecimal diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm index b1c87c870..240019800 100644 --- a/guix/scripts/pull.scm +++ b/guix/scripts/pull.scm @@ -82,7 +82,7 @@ Install it by running: (resolve-interface '(git)))) (define %repository-url - "https://git.savannah.gnu.org/git/guix.git") + (or (getenv "GUIX_PULL_URL") "https://git.savannah.gnu.org/git/guix.git")) ;;; -- 2.14.2