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:
@@ -883,7 +883,8 @@ struct GitInputScheme : InputScheme
|
||||
|
||||
bool isLocked(const Input & input) const override
|
||||
{
|
||||
return (bool) input.getRev();
|
||||
auto rev = input.getRev();
|
||||
return rev && rev != nullRev;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user