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/buildtool/main/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/main/main.cpp') diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 5589b0e0..4b8804d6 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -664,7 +664,7 @@ auto ParseRoot(std::string const& repo, repo); std::exit(kExitFailure); } - auto path = std::filesystem::path{root[1]}; + auto path = std::filesystem::path{root[1].get()}; return {FileRoot{path}, std::move(path)}; } if (root[0] == FileRoot::kGitTreeMarker) { @@ -699,7 +699,7 @@ auto ParseRoot(std::string const& repo, repo); std::exit(kExitFailure); } - auto path = std::filesystem::path{root[1]}; + auto path = std::filesystem::path{root[1].get()}; return {FileRoot{path, /*ignore_special=*/true}, std::move(path)}; } if (root[0] == FileRoot::kGitTreeIgnoreSpecialMarker) { -- cgit v1.2.3