From 0b4fea787232ab009dac7e6eeda46a967df64730 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 2 Apr 2025 15:17:26 -0400 Subject: [PATCH] Fix windows build (cherry picked from commit 652a628d1c49c4ec11018a4cce775a48383ca307) --- 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 4cc726076..71bb8c0b7 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -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"