From 652a628d1c49c4ec11018a4cce775a48383ca307 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 2 Apr 2025 15:17:26 -0400 Subject: [PATCH] Fix windows build --- src/libfetchers/git.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc index 3db603d32..4a916929e 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -533,7 +533,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"