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:
commit
1831948c20
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue