1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Fix mingw build

https://hydra.nixos.org/build/291153007
This commit is contained in:
Eelco Dolstra 2025-02-26 19:54:47 +01:00
parent 81834e7f00
commit ec8f78b0be

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