From 1a0c23c087666f528fee105f079374a2707f1a64 Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Wed, 28 Jun 2023 17:27:48 +0200 Subject: Fix json to filepath conversion in main --- src/other_tools/just_mr/utils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/other_tools/just_mr/utils.cpp') diff --git a/src/other_tools/just_mr/utils.cpp b/src/other_tools/just_mr/utils.cpp index 94a1f53b..92563824 100644 --- a/src/other_tools/just_mr/utils.cpp +++ b/src/other_tools/just_mr/utils.cpp @@ -23,8 +23,9 @@ namespace JustMR::Utils { auto GetGitRoot(JustMR::PathsPtr const& just_mr_paths, std::string const& repo_url) noexcept -> std::filesystem::path { if (just_mr_paths->git_checkout_locations.contains(repo_url)) { - return std::filesystem::absolute(ToNormalPath(std::filesystem::path( - just_mr_paths->git_checkout_locations[repo_url]))); + return std::filesystem::absolute(ToNormalPath(std::filesystem::path{ + just_mr_paths->git_checkout_locations[repo_url] + .get()})); } auto repo_url_as_path = std::filesystem::absolute( ToNormalPath(std::filesystem::path(repo_url))); -- cgit v1.2.3