summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/just_mr/main.cpp')
-rw-r--r--src/other_tools/just_mr/main.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp
index 2d1c7328..5dc6cc0f 100644
--- a/src/other_tools/just_mr/main.cpp
+++ b/src/other_tools/just_mr/main.cpp
@@ -303,11 +303,6 @@ auto main(int argc, char* argv[]) -> int {
return kExitGenericFailure;
}
- // set remote execution protocol compatibility
- if (arguments.common.compatible == true) {
- Compatibility::SetCompatible();
- }
-
/**
* The current implementation of libgit2 uses pthread_key_t incorrectly
* on POSIX systems to handle thread-specific data, which requires us to
@@ -320,7 +315,7 @@ auto main(int argc, char* argv[]) -> int {
if (arguments.cmd == SubCommand::kJustDo or
arguments.cmd == SubCommand::kJustSubCmd) {
// check setup configuration arguments for validity
- if (Compatibility::IsCompatible() and
+ if (arguments.common.compatible == true and
arguments.common.fetch_absent) {
Logger::Log(LogLevel::Error,
"Fetching absent repositories only available in "
@@ -350,7 +345,7 @@ auto main(int argc, char* argv[]) -> int {
if (arguments.cmd == SubCommand::kSetup or
arguments.cmd == SubCommand::kSetupEnv) {
// check setup configuration arguments for validity
- if (Compatibility::IsCompatible() and
+ if (arguments.common.compatible == true and
arguments.common.fetch_absent) {
Logger::Log(LogLevel::Error,
"Fetching absent repositories only available in "
@@ -385,7 +380,7 @@ auto main(int argc, char* argv[]) -> int {
// Run subcommand `fetch`
if (arguments.cmd == SubCommand::kFetch) {
// check fetch configuration arguments for validity
- if (Compatibility::IsCompatible()) {
+ if (arguments.common.compatible == true) {
if (arguments.common.remote_execution_address and
arguments.fetch.backup_to_remote) {
Logger::Log(