diff --git a/src/libfetchers-tests/git-utils.cc b/src/libfetchers-tests/git-utils.cc index 51622a95507..ee6ef17349e 100644 --- a/src/libfetchers-tests/git-utils.cc +++ b/src/libfetchers-tests/git-utils.cc @@ -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); } @@ -49,7 +49,7 @@ class GitUtilsTest : public ::testing::Test std::string getRepoName() const { - return tmpDir.filename(); + return tmpDir.filename().string(); } };