From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EJ1JNm86mWbEWwAA62LTzQ:P1 (envelope-from ) for ; Thu, 18 Jul 2024 15:53:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EJ1JNm86mWbEWwAA62LTzQ (envelope-from ) for ; Thu, 18 Jul 2024 17:53:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=npDe2Fse; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721317999; 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: content-transfer-encoding:content-transfer-encoding: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=R9fcxDtEJJjJ9JoBReUuiLUbOUu7HcBtU+EQg6RGdjs=; b=EdBbw/Ovm1OrWpKjQGlePMoSluTHDUiwn63RmrSKjGXia8dREP038xDwyoB6EBT+nJysOJ tUA2FjorvBfRz8+E7LstCvbG+TCkXoLsYUnAd/LPnSj9akLeGQlhw3p/GZl+lTn6fo4khB UWE6cUr370xGPkV+3b/nwOde0oXpc811WgldUQGhjgJkePtPxTXWipTTX335KIO2p4xc/i JxQm5CG7CDvadzXgabcWJDnrdExS+48BksMj8letSSVEHY4Ecgz4tPp50uYdPl/GhnkC/V w/dngOZvVUzLZ/zEaac7BwXNVeWQHwClqPVEprg/MsiEfCwYEc8xdJWRMADRBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721317999; a=rsa-sha256; cv=none; b=t/GEerSRC7WlzwZc8wbE5wd0b9y30lK40qsFYn3jYVQDDlg7HnphSYz3tJuQqLCIalSnr+ 648RUsCKf+JJ4bT1v5Ij9FJhyE19haKr2vdyZrcQoUht1CqS3DVVvfgqUMKT2N1N/pyrEM pFf15vNtyBvIsHYWGUjcH7VudTdZPiCxxTXjxYKqLdk1PaChV60v0cFeWrg2fJhGNaLJSH /5U3mA5/40Dqr2bZWRTfZnCUYBSte/CvVzLKvYxaFHpaVps3c72kf++SZDoIxionpOx8aZ h9YbarQpRgRiAZpukKPUEtpXJnEY1lyRgIJRNt4hT40Gtx7RJPqA2LfUicla3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=npDe2Fse; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 BE6D16F825 for ; Thu, 18 Jul 2024 17:53:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sUTRG-0006TG-4W; Thu, 18 Jul 2024 11:53:02 -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 1sUTRD-0006LJ-UA for guix-patches@gnu.org; Thu, 18 Jul 2024 11:52:59 -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 1sUTRD-0008GA-Kp for guix-patches@gnu.org; Thu, 18 Jul 2024 11:52:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sUTRG-0006RK-Cl for guix-patches@gnu.org; Thu, 18 Jul 2024 11:53:02 -0400 Subject: bug#71900: [PATCH] git: Remove untracked files from cached checkouts. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Thu, 18 Jul 2024 15:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 71900 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71900-done@debbugs.gnu.org Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines Mail-Followup-To: 71900@debbugs.gnu.org, ludo@gnu.org, ludo@gnu.org Received: via spool by 71900-done@debbugs.gnu.org id=D71900.172131797624737 (code D ref 71900); Thu, 18 Jul 2024 15:53:02 +0000 Received: (at 71900-done) by debbugs.gnu.org; 18 Jul 2024 15:52:56 +0000 Received: from localhost ([127.0.0.1]:37936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUTR9-0006Qu-Hm for submit@debbugs.gnu.org; Thu, 18 Jul 2024 11:52:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUTR5-0006Qc-0W for 71900-done@debbugs.gnu.org; Thu, 18 Jul 2024 11:52:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUTQs-00086u-Vg; Thu, 18 Jul 2024 11:52:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=R9fcxDtEJJjJ9JoBReUuiLUbOUu7HcBtU+EQg6RGdjs=; b=npDe2FseFfryuueqQVid BqPW4r2Dv+vNUCm/rOdO2ctlNP6Zsy3xzkgYCZwPgcPmaOxk6iR6rvGR7R/lJt5vxQtwSl5lDRFYl Nt24Yz53WvVXynK3wUhPsGMyRNJ0S9SXcSa/ETX/rq2xCZSxYejtTYx+r1QBr3LzvHMEUcoF/4MmP 4ezwrCN7NOSHWLkMJdtlwKYcWK/t8TEdhlpH+Fh7zwWwOpb5b00uCmRUQxp9blZJqFblZNseXv7TT /LTKwW++C2roH5ORcy3kyHgOdenzTBIVWlRVLTkItft/xFqn9ePUhQCnM+dpd1tN1vLyuGxXxybug IivZn7PDpkCpiA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <384ad3938ada52672969a2d8563d132c34e9dd01.1719925366.git.ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 2 Jul 2024 15:03:01 +0200") References: <384ad3938ada52672969a2d8563d132c34e9dd01.1719925366.git.ludo@gnu.org> Date: Thu, 18 Jul 2024 17:52:35 +0200 Message-ID: <875xt2vgsc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: BE6D16F825 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.81 X-Spam-Score: -5.81 X-TUID: ck/5K12WLfcM Ludovic Court=C3=A8s skribis: > Cached checkouts could end up with stale untracked files, for example > because the checkout was interrupted. As a result, when this happens > for the Guix checkout, users would not get substitutes for =E2=80=98guix = pull=E2=80=99. > > * guix/git.scm (delete-untracked-files): New procedure. > (switch-to-ref): Use it. > * tests/git.scm ("update-cached-checkout, untracked files removed"): New > test. > > Co-authored-by: Ricardo Wurmus > Change-Id: Iccbe644ade396ad27a037db7e0ef1c2a68ef91ce Pushed as 58e268c2e30567f415fa4e02086e49299c31406a.