From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 25 15:17:23 2020 Received: (at 43893) by debbugs.gnu.org; 25 Oct 2020 19:17:23 +0000 Received: from localhost ([127.0.0.1]:37709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWlW6-0004Il-UT for submit@debbugs.gnu.org; Sun, 25 Oct 2020 15:17:23 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:33410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWlW4-0004IQ-1l for 43893@debbugs.gnu.org; Sun, 25 Oct 2020 15:17:21 -0400 Received: by mail-qk1-f182.google.com with SMTP id t128so1416206qke.0 for <43893@debbugs.gnu.org>; Sun, 25 Oct 2020 12:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Yx3JXpR6I4HAVQGfzO1KlKmHzTesbpHMtTzQ4gGgaxw=; b=U3TVOXePapJ6U5JQY17FEb7C05Y0+jEJGFCygX9D00yC6vghLZzlS/9xU8LjrBp33m gcNSTm7YyBxyT0eRWBbFP9kscM+7y9gZXdBX/yIebFOrWe/4jcWLE17DslNHZ3NVokkx L0nyPtdCbfSj52NwK01NE49DQ0LysDZJoxGNF8cPS4JjmAGZ/OpQzgV7uLBAiElAYqwX jOV7/XveHnrzZB0YcxBELHYlBpFiW1wDXIoKsXazRP2twzB9Q1nkelJuyo4a7IYmJD2S L8NgtU48IIFi1X/DcKP1xnbSK5ohBqbhXkuJbTq7z9J5hri8XmtChA1C8twxfVT/f5/d JkRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Yx3JXpR6I4HAVQGfzO1KlKmHzTesbpHMtTzQ4gGgaxw=; b=D8OhMMeY9G/hBZdJwqFtrhY16M0p15nfuMbJ3M/YcNe9T4p76VRBzqlAWqmjDhkeo5 NKpvbJCZZt7sa4UWmFcXF59SV81xNoj0V8VB/dot6R6h08OsnjTNCHHuHEpNfqG/Yfbp chH/TfjnfuFtKwa0kiFeLO739EwdrAJnbDffgMuCZGojF+W9IZOJeXaQNrLAaEuE8+md gX5zs7turPXussqpeXQ7x9kHWxslc6q+XBqRwNjYRyM9WfIaWlncX5JohjnowcO9sS8i T8B5yO3cakaw9+oh+5JaH42aUlAtYMSU3lh7Dfl/cJlAS0YyWfO7dE0o0p+Ah8k8JVsQ iXrA== X-Gm-Message-State: AOAM532m3Nv6zzKMxN+TI1dvY7So7fIJuO43GjP0FqZ47y2udYRp+EcK wZ6WMQIK5KC72aTTNPNOnKQhWs9sZvg= X-Google-Smtp-Source: ABdhPJyl2x8kGBfcjY20CkLdcAI2UT71G8OYNpNgbY3iGQu0dt2p3O94MIA2AcOxd2M41r04I1vbSQ== X-Received: by 2002:a37:e315:: with SMTP id y21mr13118657qki.194.1603653433440; Sun, 25 Oct 2020 12:17:13 -0700 (PDT) Received: from hurd (dsl-10-129-233.b2b2c.ca. [72.10.129.233]) by smtp.gmail.com with ESMTPSA id i20sm5049592qkl.65.2020.10.25.12.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 12:17:13 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#43893: [PATCH v3] maint: update-guix-package: Prevent accidentally breaking guix pull. References: <87imbedsko.fsf@gnu.org> <20201014031705.4516-1-maxim.cournoyer@gmail.com> <873622gyfz.fsf@gnu.org> Date: Sun, 25 Oct 2020 15:17:12 -0400 In-Reply-To: <873622gyfz.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sun, 25 Oct 2020 15:41:36 +0100") Message-ID: <87pn56xghz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43893 Cc: 43893@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hey Ludo, Ludovic Court=C3=A8s writes: > Hi, > > Maxim Cournoyer skribis: > >> +(define %savannah-guix-git-repo-push-url >> + "git.savannah.gnu.org/srv/git/guix.git") > > [...] > >> +(define (find-origin-remote) >> + "Find the name of the git remote with the Savannah Guix git repo URL." >> + (and-let* ((remotes (string-split (with-input-pipe-to-string >> + "git" "remote" "-v") >> + #\newline)) >> + (origin-entry (find (cut string-contains <> >> + (string-append >> + %savannah-guix-git-repo-push-url >> + " (push)")) >> + remotes))) >> + (first (string-split origin-entry #\tab)))) > > I noticed that this returns #f for me because I=E2=80=99m using git.sv.gn= u.org, > not git.savannah.gnu.org. Thank for the report! It should be fixed with 13a3b9c748a80c0d4c79450e479416480273d2f7. Feel free to edit the %savannah-guix-git-repo-push-url-regexp regexp if there are more variants that we're still missing. Maxim