1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-09 12:03:55 +02:00

Merge pull request #13369 from NixOS/null-revision-not-locked

Git fetcher: Do not consider a null revision (i.e. workdir) to be locked
This commit is contained in:
Eelco Dolstra 2025-07-03 19:56:21 +02:00 committed by GitHub
commit d4f67fd46d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
} }
}; };