mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Merge pull request #13873 from xokdvium/fix-mingw
libfetchers: Fix mingw build
This commit is contained in:
commit
401e7fe3ad
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