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

Git fetcher: Do not consider a null revision (i.e. workdir) to be locked

This commit is contained in:
Eelco Dolstra 2025-06-12 15:54:34 +02:00
parent cdb417854b
commit 59c7dac867

View file

@ -883,7 +883,8 @@ struct GitInputScheme : InputScheme
bool isLocked(const Input & input) const override bool isLocked(const Input & input) const override
{ {
return (bool) input.getRev(); auto rev = input.getRev();
return rev && rev != nullRev;
} }
}; };