1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 03:01:47 +02:00

GitExportIgnoreSourceAccessor: Don't show «unknown»

In general we should set the path display prefix on the inner
accessor, so we now pass the display prefix to getAccessor().

(cherry picked from commit 3032512425)
This commit is contained in:
Eelco Dolstra 2025-01-30 12:41:02 +01:00 committed by Mergify
parent 1c1f8b2343
commit 28684af74b
5 changed files with 29 additions and 20 deletions

View file

@ -672,9 +672,7 @@ struct GitInputScheme : InputScheme
verifyCommit(input, repo);
bool exportIgnore = getExportIgnoreAttr(input);
auto accessor = repo->getAccessor(rev, exportIgnore);
accessor->setPathDisplay("«" + input.to_string() + "»");
auto accessor = repo->getAccessor(rev, exportIgnore, "«" + input.to_string() + "»");
/* If the repo has submodules, fetch them and return a mounted
input accessor consisting of the accessor for the top-level