1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 11:43:15 +02:00

Set locked flag

This commit is contained in:
Eelco Dolstra 2022-06-01 13:16:23 +02:00
parent 04d5417755
commit f917970df8
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 4 additions and 8 deletions

View file

@ -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());