[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48698: [PATCH] git-download: Fix 'git-predicate' handling of deleted
From: |
Ludovic Courtès |
Subject: |
bug#48698: [PATCH] git-download: Fix 'git-predicate' handling of deleted files. |
Date: |
Fri, 28 May 2021 12:10:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi Andrew,
Andrew Whatson <whatson@gmail.com> skribis:
> When git-predicate is used on an active worktree, some files in the
> index might not exist on the filesystem. Instead of failing with "No
> such file or directory", these should be ignored.
>
> * guix/git-download.scm (git-predicate): Skip missing files.
I pushed a slightly different version as
50d5bb1f3e3f080212436db1b8666d061a8ae1d2, mostly avoiding the extra
‘stat’ call induced by ‘file-exists?’.
Thanks,
Ludo’.