1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 02:21:16 +02:00

Fix windows build

(cherry picked from commit 652a628d1c)
This commit is contained in:
John Ericson 2025-04-02 15:17:26 -04:00 committed by Eelco Dolstra
parent 6d53506ae3
commit 0b4fea7872

View file

@ -535,7 +535,7 @@ struct GitInputScheme : InputScheme
static MakeNotAllowedError makeNotAllowedError(std::filesystem::path repoPath)
{
return [repoPath{std::move(repoPath)}](const CanonPath & path) -> RestrictedPathError {
if (nix::pathExists(repoPath / path.rel()))
if (fs::symlink_exists(repoPath / path.rel()))
return RestrictedPathError(
"Path '%1%' in the repository %2% is not tracked by Git.\n"
"\n"