[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71900: [PATCH] git: Remove untracked files from cached checkouts.
From: |
Ludovic Courtès |
Subject: |
bug#71900: [PATCH] git: Remove untracked files from cached checkouts. |
Date: |
Thu, 18 Jul 2024 17:52:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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.