mirror of
https://github.com/NixOS/nix.git
synced 2025-12-16 14:01:05 +01:00
libfetchers: Fix mingw build
This commit is contained in:
parent
511d885d60
commit
b88a22504f
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ static DownloadTarballResult downloadTarball_(
|
|||
throw Error("tarball '%s' does not exist.", localPath);
|
||||
}
|
||||
if (is_directory(localPath)) {
|
||||
if (std::filesystem::exists(localPath + "/.git")) {
|
||||
if (exists(localPath / ".git")) {
|
||||
throw Error(
|
||||
"tarball '%s' is a git repository, not a tarball. Please use `git+file` as the scheme.", localPath);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue