GNU bug report logs - #71900
[PATCH] git: Remove untracked files from cached checkouts.

Previous Next

Package: guix-patches;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Tue, 2 Jul 2024 13:04:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 71900-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 71900-done <at> debbugs.gnu.org
Cc: Josselin Poiret <dev <at> jpoiret.xyz>,
 Simon Tournier <zimon.toutoune <at> gmail.com>, Mathieu Othacehe <othacehe <at> gnu.org>,
 Tobias Geerinckx-Rice <me <at> tobias.gr>, Ricardo Wurmus <rekado <at> elephly.net>,
 Christopher Baines <guix <at> cbaines.net>
Subject: Re: [bug#71900] [PATCH] git: Remove untracked files from cached
 checkouts.
Date: Thu, 18 Jul 2024 17:52:35 +0200
Ludovic Courtès <ludo <at> gnu.org> 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 ‘guix pull’.
>
> * 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 <rekado <at> elephly.net>
> Change-Id: Iccbe644ade396ad27a037db7e0ef1c2a68ef91ce

Pushed as 58e268c2e30567f415fa4e02086e49299c31406a.




This bug report was last modified 1 year ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.