From d6eb885a3f205e00a3be9f2ae2e8f510cae15d8a Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 22 Mar 2023 14:23:24 +0100 Subject: just-mr: Add git binary option In the rare cases that we need to shell out to git, let the user configure what binary to use. Option resolves in the same way as the just executable, including allowing it to be set via just-mrrc. Updates all cases of shelling out to git (fetch and commit update). Update just-mr and just-mrrc docs accordingly. --- src/other_tools/git_operations/git_repo_remote.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/other_tools/git_operations/git_repo_remote.hpp') diff --git a/src/other_tools/git_operations/git_repo_remote.hpp b/src/other_tools/git_operations/git_repo_remote.hpp index 9b68ada9..cfe1736d 100644 --- a/src/other_tools/git_operations/git_repo_remote.hpp +++ b/src/other_tools/git_operations/git_repo_remote.hpp @@ -87,6 +87,7 @@ class GitRepoRemote : public GitRepo { std::filesystem::path const& tmp_dir, std::string const& repo_url, std::string const& branch, + std::string const& git_bin, std::vector const& launcher, anon_logger_ptr const& logger) const noexcept -> std::optional; @@ -104,6 +105,7 @@ class GitRepoRemote : public GitRepo { [[nodiscard]] auto FetchViaTmpRepo(std::filesystem::path const& tmp_dir, std::string const& repo_url, std::optional const& branch, + std::string const& git_bin, std::vector const& launcher, anon_logger_ptr const& logger) noexcept -> bool; -- cgit v1.2.3