mirror of
https://github.com/NixOS/nix
synced 2025-06-30 11:43:15 +02:00
Set locked flag
This commit is contained in:
parent
04d5417755
commit
f917970df8
3 changed files with 4 additions and 8 deletions
|
@ -192,6 +192,8 @@ struct GitArchiveInputScheme : InputScheme
|
|||
auto rev = input.getRev();
|
||||
if (!rev) rev = getRevFromRef(store, input);
|
||||
|
||||
input.locked = true;
|
||||
|
||||
input.attrs.erase("ref");
|
||||
input.attrs.insert_or_assign("rev", rev->gitRev());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue