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 2J6XGcWOlV/DYgAA0tVLHw (envelope-from ) for ; Sun, 25 Oct 2020 14:42:13 +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 0EKHFcWOlV+ifwAA1q6Kng (envelope-from ) for ; Sun, 25 Oct 2020 14:42:13 +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 E51759403E8 for ; Sun, 25 Oct 2020 14:42:12 +0000 (UTC) Received: from localhost ([::1]:53532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWhDn-0001Ag-Na for larch@yhetil.org; Sun, 25 Oct 2020 10:42:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWhDe-00018o-Jw for bug-guix@gnu.org; Sun, 25 Oct 2020 10:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWhDe-0005yn-9g for bug-guix@gnu.org; Sun, 25 Oct 2020 10:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kWhDe-0001Yc-7i for bug-guix@gnu.org; Sun, 25 Oct 2020 10:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43893: [PATCH v3] maint: update-guix-package: Prevent accidentally breaking guix pull. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Oct 2020 14:42: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: Maxim Cournoyer Received: via spool by 43893-submit@debbugs.gnu.org id=B43893.16036369055936 (code B ref 43893); Sun, 25 Oct 2020 14:42:02 +0000 Received: (at 43893) by debbugs.gnu.org; 25 Oct 2020 14:41:45 +0000 Received: from localhost ([127.0.0.1]:37254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWhDN-0001Xg-4R for submit@debbugs.gnu.org; Sun, 25 Oct 2020 10:41:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWhDL-0001XR-S9 for 43893@debbugs.gnu.org; Sun, 25 Oct 2020 10:41:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35313) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWhDG-0005xY-Ez; Sun, 25 Oct 2020 10:41:38 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55046 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kWhDF-0001vk-Nj; Sun, 25 Oct 2020 10:41:37 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87imbedsko.fsf@gnu.org> <20201014031705.4516-1-maxim.cournoyer@gmail.com> Date: Sun, 25 Oct 2020 15:41:36 +0100 In-Reply-To: <20201014031705.4516-1-maxim.cournoyer@gmail.com> (Maxim Cournoyer's message of "Tue, 13 Oct 2020 23:17:05 -0400") Message-ID: <873622gyfz.fsf@gnu.org> 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: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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=none; dmarc=pass (policy=none) header.from=gnu.org; 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: -1.51 X-TUID: IDEyU1S8fu28 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.gnu.= org, not git.savannah.gnu.org. Initially I thought it would break due to i18n, but it seems that the string =E2=80=9Cpush=E2=80=9D is not translated (currently). Ludo=E2=80=99.