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

Merge pull request #12885 from NixOS/fix-windows-build

Fix windows build
This commit is contained in:
mergify[bot] 2025-04-02 22:34:41 +00:00 committed by GitHub
commit 1831948c20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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