mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 00:12:43 +01: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().
This commit is contained in:
parent
102d90ebf0
commit
3032512425
5 changed files with 29 additions and 20 deletions
|
|
@ -294,9 +294,10 @@ struct GitArchiveInputScheme : InputScheme
|
|||
#endif
|
||||
input.attrs.insert_or_assign("lastModified", uint64_t(tarballInfo.lastModified));
|
||||
|
||||
auto accessor = getTarballCache()->getAccessor(tarballInfo.treeHash, false);
|
||||
|
||||
accessor->setPathDisplay("«" + input.to_string() + "»");
|
||||
auto accessor = getTarballCache()->getAccessor(
|
||||
tarballInfo.treeHash,
|
||||
false,
|
||||
"«" + input.to_string() + "»");
|
||||
|
||||
return {accessor, input};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue