From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4qTJETws92QWkwAAauVa8A:P1 (envelope-from ) for ; Tue, 05 Sep 2023 15:25:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4qTJETws92QWkwAAauVa8A (envelope-from ) for ; Tue, 05 Sep 2023 15:25:16 +0200 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 21AB044D91 for ; Tue, 5 Sep 2023 15:25:16 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=fIFdx5f+; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693920316; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=xTzCsrIgy1+WD94jNViRkxTKQcHUaTOkBqJGqFD35ss=; b=s+wQN0sxjSLe6YK+vKtwu9TGVc/W6ibzsTZHgxANf7IduGUvpgbGnXbHv2/J5ja5dZKQhT dpeXGQ1w66FcX4hjIaISU8djGQj5uNwZS+Ohw3DtX//xVy+v3TwajWkbH58tMIKsBPJCVg 7tGRGDxi0uJyDT8Xp3P3GMA8ewEGrcmQ6gcjYm3x6rrhJ5BlKRd7Y8FdjgmroYcYu1TEcL 3h0tvPl+Po+orVNmU8BO73paopyqtYVVTpnwf2vC4qpsD9cyWzKAJ9nN7cFXqBZxG/YP6L 8jLIRhpgLcnFGdtdTobDH3r6/ZfdWuVuXYFMSdfABXA+leZBPBtZXZiPuRk5Sw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693920316; a=rsa-sha256; cv=none; b=l045rnuTluJvNXw9WdN5vTcQGNK3EwYyUMJ1OnE7MDlBhauOP49TrgnVpso5EACnOLrmOl +vVSpbCLDNBZ9SyoZ6nyydE9aeb0q3D0xzqFpmJcFZlSGeWiCyWjrIa1NQ3F9SYTmYA07a I6U/FDYAfY6aAu4xRDiAfbTJrR1fRngFDSgofqcxB4+U5tZN4hcHmxyEVJYCaSN6qaeKXH zP+97RzlhUSTEkgJn95l8nkupqwj1pBrti63G3a6kg1EynrmyHrUY/87Wo/qYJcJhkbUtr DEaCW60g7F63D4NpzI2JepR5+n1Q/Zis5lXUEw3W52jUDO42SECulbW/lNpSOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=fIFdx5f+; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdW3J-0004Lr-NS; Tue, 05 Sep 2023 09:25:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdW3D-0004LR-2H for guix-patches@gnu.org; Tue, 05 Sep 2023 09:25:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdW3B-0004e0-QA for guix-patches@gnu.org; Tue, 05 Sep 2023 09:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdW3B-0003Io-W3 for guix-patches@gnu.org; Tue, 05 Sep 2023 09:25:02 -0400 Subject: bug#65352: Fix time-machine and network Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 05 Sep 2023 13:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 65352 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Simon Tournier Cc: 65352-done@debbugs.gnu.org Mail-Followup-To: 65352@debbugs.gnu.org, maxim.cournoyer@gmail.com, zimon.toutoune@gmail.com Received: via spool by 65352-done@debbugs.gnu.org id=D65352.169392030012673 (code D ref 65352); Tue, 05 Sep 2023 13:25:01 +0000 Received: (at 65352-done) by debbugs.gnu.org; 5 Sep 2023 13:25:00 +0000 Received: from localhost ([127.0.0.1]:55117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdW39-0003IL-La for submit@debbugs.gnu.org; Tue, 05 Sep 2023 09:24:59 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:51226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdW37-0003I4-LV for 65352-done@debbugs.gnu.org; Tue, 05 Sep 2023 09:24:58 -0400 Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-41243a67b62so17034671cf.2 for <65352-done@debbugs.gnu.org>; Tue, 05 Sep 2023 06:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693920291; x=1694525091; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=xTzCsrIgy1+WD94jNViRkxTKQcHUaTOkBqJGqFD35ss=; b=fIFdx5f+zVAFgiYnqxxW/fUXKy2Imo9ycV9iEVtWtc8c5tt0uTx6IzNeUWvZwz9/t9 vOXOZ2Fns6ppBMyeQD6KzpR+SgQuw+ND0u7bN+aheN1UnIBeBO7n2PakejApjN5o+VV+ zOdmqHdoc7Z7ANh82ZqSGnqmRGPlNyYQiJkKspmBFD/YVXEI9NUZMwpMNg7LunvL3uKS yP7NzP+elpVeCWiku+Vg5iev7+EjOom/dNf+FPdo4nyc0gzW/WH6majbgUXyXZ3BO/DJ ZB6mi6IcYDKEaWZxTRv1HTTj7JNXjVy1C/nrgQSu983V40wGZU0tSZWQzqQxRfYwGXTH jdhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693920291; x=1694525091; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xTzCsrIgy1+WD94jNViRkxTKQcHUaTOkBqJGqFD35ss=; b=MuQvaxRJjSd1eHYGSt6z7csVJzpz3XMVXzZ/Syr1GXcEs2UV40IDhck0beBZ96i6KQ f59PIjQWmYiRXZxEBv7nfG8DDrlkQ56DBg77otmTQ11AHIcq5Y7LnznYzxKJ1vTqyhLp Q3QATrjlHYTWwvtFj+1Uq37nfutAMcnfyaI/LtCibN1UOweoBC1LbGvTAmISn+KfPIjY IDEAo1tWHOChIhQcgta3Fe8qIEyqGj67EpDyb8iAmh6vayQCErRQqaX5b7+8nJ4As1AC VEi4TJlt5TVbZqOX6/7uf3Xnq6niusJzp+hKJadTVkoVP0r2kfAJakH+nJNPDfc0aEMG hfCw== X-Gm-Message-State: AOJu0YwibN0Jo9v6HJQnFznEyFdi+aOOP2Uam4/0ZuapjAreM8JN0ZNT USdQOnI+gQQlvWxQiV9Q9drIkDfTR6TcNw== X-Google-Smtp-Source: AGHT+IHb7Ytbg98AXyR+pFkPrwg/zez2Kttg67Jsu4XMKpdOBvq1nsTIMj755t9r9R9AE9SL239BDQ== X-Received: by 2002:a0c:f508:0:b0:651:5bf4:22d with SMTP id j8-20020a0cf508000000b006515bf4022dmr11248889qvm.32.1693920291330; Tue, 05 Sep 2023 06:24:51 -0700 (PDT) Received: from hurd (dsl-153-125.b2b2c.ca. [66.158.153.125]) by smtp.gmail.com with ESMTPSA id r18-20020a0cb292000000b0064f5daff23fsm4472678qve.15.2023.09.05.06.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Sep 2023 06:24:50 -0700 (PDT) From: Maxim Cournoyer References: <87fs4h4vb9.fsf@gmail.com> Date: Tue, 05 Sep 2023 09:24:49 -0400 In-Reply-To: (Simon Tournier's message of "Thu, 17 Aug 2023 16:09:16 +0200") Message-ID: <87fs3slplq.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -5.13 X-Migadu-Queue-Id: 21AB044D91 X-Migadu-Spam-Score: -5.13 X-TUID: IXFusq4k/BWR Hi, Simon Tournier writes: > * guix/git/scm (reference-available?): Rely of the procedure resolve-reference > to determine if the reference belongs to the local Git checkout. > --- > guix/git.scm | 13 ++----------- > 1 file changed, 2 insertions(+), 11 deletions(-) > > diff --git a/guix/git.scm b/guix/git.scm > index dbc3b7caa7..ebe2600209 100644 > --- a/guix/git.scm > +++ b/guix/git.scm > @@ -360,17 +360,8 @@ (define-syntax-rule (false-if-git-not-found exp) > (define (reference-available? repository ref) > "Return true if REF, a reference such as '(commit . \"cabba9e\"), is > definitely available in REPOSITORY, false otherwise." > - (match ref > - ((or ('commit . commit) > - ('tag-or-commit . (? commit-id? commit))) > - (let ((len (string-length commit)) > - (oid (string->oid commit))) > - (false-if-git-not-found > - (->bool (if (< len 40) > - (object-lookup-prefix repository oid len OBJ-COMMIT) > - (commit-lookup repository oid)))))) > - (_ > - #f))) > + (false-if-git-not-found > + (->bool (resolve-reference repository ref)))) This was applied some time ago as a789dd58656d5f7f1b8edf790d77753fc71670af. Closing. -- Thanks, Maxim