unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: 71900-done@debbugs.gnu.org
Cc: Josselin Poiret <dev@jpoiret.xyz>,
	Simon Tournier <zimon.toutoune@gmail.com>,
	Mathieu Othacehe <othacehe@gnu.org>,
	Tobias Geerinckx-Rice <me@tobias.gr>,
	Ricardo Wurmus <rekado@elephly.net>,
	Christopher Baines <guix@cbaines.net>
Subject: bug#71900: [PATCH] git: Remove untracked files from cached checkouts.
Date: Thu, 18 Jul 2024 17:52:35 +0200	[thread overview]
Message-ID: <875xt2vgsc.fsf@gnu.org> (raw)
In-Reply-To: <384ad3938ada52672969a2d8563d132c34e9dd01.1719925366.git.ludo@gnu.org> ("Ludovic Courtès"'s message of "Tue, 2 Jul 2024 15:03:01 +0200")

Ludovic Courtès <ludo@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@elephly.net>
> Change-Id: Iccbe644ade396ad27a037db7e0ef1c2a68ef91ce

Pushed as 58e268c2e30567f415fa4e02086e49299c31406a.




      reply	other threads:[~2024-07-18 15:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-02 13:03 [bug#71900] [PATCH] git: Remove untracked files from cached checkouts Ludovic Courtès
2024-07-18 15:52 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875xt2vgsc.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=71900-done@debbugs.gnu.org \
    --cc=dev@jpoiret.xyz \
    --cc=guix@cbaines.net \
    --cc=me@tobias.gr \
    --cc=othacehe@gnu.org \
    --cc=rekado@elephly.net \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).