Skip to content

Commit

Permalink
Fix mingw build
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Feb 26, 2025
1 parent 81834e7 commit ec8f78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libfetchers-tests/git-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GitUtilsTest : public ::testing::Test
// 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);
}
Expand All @@ -49,7 +49,7 @@ class GitUtilsTest : public ::testing::Test

std::string getRepoName() const
{
return tmpDir.filename();
return tmpDir.filename().string();
}
};

Expand Down

0 comments on commit ec8f78b

Please sign in to comment.