1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 05:26:02 +01:00

Fix assertion failure in FlakeRef::to_string()

This commit is contained in:
Eelco Dolstra 2019-04-19 11:16:14 +02:00
parent 6e4210d8ce
commit 46cb15df9b
4 changed files with 5 additions and 3 deletions

View file

@ -237,8 +237,8 @@ static FlakeSourceInfo fetchFlake(EvalState & state, const FlakeRef flakeRef, bo
info.storePath = gitInfo.storePath;
info.rev = Hash(gitInfo.rev, htSHA1);
info.revCount = gitInfo.revCount;
info.flakeRef.ref = gitInfo.ref;
info.flakeRef.rev = info.rev;
// FIXME: ensure info.flakeRef.ref is set.
return info;
}