From ec8f78b0be98384f986caef469dee51b4a7a1b69 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 26 Feb 2025 19:54:47 +0100 Subject: [PATCH] Fix mingw build https://hydra.nixos.org/build/291153007 --- src/libfetchers-tests/git-utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } };