Open satmandu opened 8 months ago
I'd have to take a closer look at git sparse-checkout
to see if there's any support for/from git ls-files
, which I currently use to get the list of files to update.
git sparse-checkout
is a relatively new command, introduced in 2020, and still marked as experimental so its API can change, and it seems it has done so several times over the the last years.
If there's no way to adjust ls-files
to deal with sparse checkouts (or find a replacement to retrieve the actual list of files), a workaround would be to create a new flag --ignore-missing-files
to silence only those errors. That's feasible and quite easy, but I'd have to take a look on the performance impact of adding exception handling to the heart of touch()
(possibly in yet another touch()
variant)
Reproducer steps:
I get this output:
The errors are all from the sparse-checkout excluded files. Is there a way to avoid erroring on those files?