1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Merge pull request #12572 from DeterminateSystems/fix-mingw-build

Fix mingw build
This commit is contained in:
Eelco Dolstra 2025-02-26 21:32:58 +01:00 committed by GitHub
commit 31923aaac0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ public:
// Create the repo with libgit2
git_libgit2_init();
git_repository * repo = nullptr;
auto r = git_repository_init(&repo, tmpDir.c_str(), 0);
auto r = git_repository_init(&repo, tmpDir.string().c_str(), 0);
ASSERT_EQ(r, 0);
git_repository_free(repo);
}
@ -49,7 +49,7 @@ public:
std::string getRepoName() const
{
return tmpDir.filename();
return tmpDir.filename().string();
}
};