1
1
Fork 0
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:
Sergei Zimmerman 2025-08-30 02:36:16 +03:00
parent 511d885d60
commit b88a22504f
No known key found for this signature in database

View file

@ -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);
}