mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 20:46:01 +01:00
Improve SourceAccessor path display
Backported from lazy-trees. This allows SourceAccessors to show the origin of the accessor. E.g. we now get copying '«git+https://github.com/blender/blender.git?ref=refs/heads/main&rev=4edc1389337dd3679ff66969c332d2aff52e1992»/' to the store instead of copying '/' to the store
This commit is contained in:
parent
f450c8773c
commit
a0162d5732
6 changed files with 19 additions and 2 deletions
|
|
@ -582,6 +582,8 @@ struct GitInputScheme : InputScheme
|
|||
|
||||
auto accessor = repo->getAccessor(rev);
|
||||
|
||||
accessor->setPathDisplay("«" + input.to_string() + "»");
|
||||
|
||||
/* If the repo has submodules, fetch them and return a mounted
|
||||
input accessor consisting of the accessor for the top-level
|
||||
repo and the accessors for the submodules. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue