From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wLnYEXTPlV8uEQAA0tVLHw (envelope-from ) for ; Sun, 25 Oct 2020 19:18:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YAzRDXTPlV8sNwAA1q6Kng (envelope-from ) for ; Sun, 25 Oct 2020 19:18:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BAC9B9401BC for ; Sun, 25 Oct 2020 19:18:11 +0000 (UTC) Received: from localhost ([::1]:39984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWlWr-0003yy-Ob for larch@yhetil.org; Sun, 25 Oct 2020 15:18:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWlWk-0003yl-RQ for bug-guix@gnu.org; Sun, 25 Oct 2020 15:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54396) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWlWk-0004YS-IN for bug-guix@gnu.org; Sun, 25 Oct 2020 15:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kWlWk-0004Jv-Eo for bug-guix@gnu.org; Sun, 25 Oct 2020 15:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43893: [PATCH v3] maint: update-guix-package: Prevent accidentally breaking guix pull. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Oct 2020 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43893 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 43893-submit@debbugs.gnu.org id=B43893.160365344316543 (code B ref 43893); Sun, 25 Oct 2020 19:18:02 +0000 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 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?="'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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43893@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=U3TVOXeP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: HcsbyZk14pc9 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