diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2023-06-28 17:27:48 +0200 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2023-06-28 19:06:25 +0200 |
commit | 1a0c23c087666f528fee105f079374a2707f1a64 (patch) | |
tree | e4b815653baa3f56331e399ff2c8e57a86bc21db /src/other_tools/just_mr/utils.cpp | |
parent | 4e7d2c467d384503fedb5e6e36052cd56d69666e (diff) | |
download | justbuild-1a0c23c087666f528fee105f079374a2707f1a64.tar.gz |
Fix json to filepath conversion in main
Diffstat (limited to 'src/other_tools/just_mr/utils.cpp')
-rw-r--r-- | src/other_tools/just_mr/utils.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<std::string>()})); } auto repo_url_as_path = std::filesystem::absolute( ToNormalPath(std::filesystem::path(repo_url))); |