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:
commit
31923aaac0
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue