summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/fetch.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-20 10:29:17 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-25 13:59:48 +0200
commit30d62a301e668a6b20906104ff66fa3aad3354c3 (patch)
tree4597aa013c2c1fd4fc6aa8b8252f929a5d1413ad /src/other_tools/just_mr/fetch.cpp
parent6f48dfe97ccad8ba251bd09464dbd8d4427014c2 (diff)
downloadjustbuild-30d62a301e668a6b20906104ff66fa3aad3354c3.tar.gz
Use a general boolean for compatible in MultiRepoCommonArguments
Diffstat (limited to 'src/other_tools/just_mr/fetch.cpp')
-rw-r--r--src/other_tools/just_mr/fetch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp
index 0f0a0ef1..0aab2549 100644
--- a/src/other_tools/just_mr/fetch.cpp
+++ b/src/other_tools/just_mr/fetch.cpp
@@ -398,7 +398,7 @@ auto MultiRepoFetch(std::shared_ptr<Configuration> const& config,
common_args.remote_serve_address,
auth_args);
IExecutionApi::Ptr local_api{std::make_unique<LocalApi>()};
- bool remote_compatible{common_args.compatible == true};
+ bool remote_compatible{common_args.compatible};
// setup the API for serving roots
auto serve_config = JustMR::Utils::CreateServeConfig(
@@ -425,7 +425,7 @@ auto MultiRepoFetch(std::shared_ptr<Configuration> const& config,
"serve endpoint failed. Serve endpoint ignored.");
serve = std::nullopt;
}
- if (*compatible != remote_compatible) {
+ if (*compatible != common_args.compatible) {
Logger::Log(
LogLevel::Warning,
"Provided serve endpoint operates in a different compatibility "