From ba36c00cc12ea868b14ad29a98a5c6cd0b18e2dc Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 1 Dec 2023 15:23:19 +0100 Subject: commit_git_map: Formatting fix --- src/other_tools/root_maps/commit_git_map.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/other_tools/root_maps/commit_git_map.cpp') diff --git a/src/other_tools/root_maps/commit_git_map.cpp b/src/other_tools/root_maps/commit_git_map.cpp index 84267bcd..415d6dc6 100644 --- a/src/other_tools/root_maps/commit_git_map.cpp +++ b/src/other_tools/root_maps/commit_git_map.cpp @@ -360,8 +360,7 @@ void EnsureCommit(GitRepoInfo const& repo_info, auto wrapped_logger = std::make_shared( [mirror, &err_messages](auto const& msg, bool /*fatal*/) { err_messages += fmt::format( - "\nWhile attempting fetch from local mirror " - "{}:\n{}", + "\nWhile attempting fetch from local mirror {}:\n{}", mirror, msg); }); @@ -390,8 +389,7 @@ void EnsureCommit(GitRepoInfo const& repo_info, [preferred_url, &err_messages](auto const& msg, bool /*fatal*/) { err_messages += fmt::format( - "\nWhile attempting fetch from " - "remote " + "\nWhile attempting fetch from remote " "{}:\n{}", *preferred_url, msg); @@ -414,8 +412,7 @@ void EnsureCommit(GitRepoInfo const& repo_info, [fetch_repo, &err_messages](auto const& msg, bool /*fatal*/) { err_messages += fmt::format( - "\nWhile attempting fetch from remote " - "{}:\n{}", + "\nWhile attempting fetch from remote {}:\n{}", fetch_repo, msg); }); @@ -431,8 +428,7 @@ void EnsureCommit(GitRepoInfo const& repo_info, mirror = std::filesystem::absolute(mirror).string(); } else { - // if non-path, try each of the preferred - // hostnames + // if non-path, try each of the preferred hostnames for (auto const& hostname : preferred_hostnames) { if (auto preferred_mirror = CurlURLHandle::ReplaceHostname( @@ -442,8 +438,7 @@ void EnsureCommit(GitRepoInfo const& repo_info, [preferred_mirror, &err_messages]( auto const& msg, bool /*fatal*/) { err_messages += fmt::format( - "\nWhile attempting fetch " - "from " + "\nWhile attempting fetch from " "mirror {}:\n{}", *preferred_mirror, msg); @@ -469,8 +464,7 @@ void EnsureCommit(GitRepoInfo const& repo_info, [mirror, &err_messages](auto const& msg, bool /*fatal*/) { err_messages += fmt::format( - "\nWhile attempting fetch from " - "mirror " + "\nWhile attempting fetch from mirror " "{}:\n{}", mirror, msg); -- cgit v1.2.3