From 17143ed02545efab55c175db66a9e31db4cce0f0 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 21 Mar 2023 14:02:44 +0100 Subject: just-mr: Shell out to system Git for fetches over SSH... ...due to limited SSH support in libgit2. In order to allow the fetches to still be parallel, we execute: git fetch --no-auto-gc --no-write-fetch-head [] This only fetches the packs without updating any refs, at the slight cost of sometimes fetching some redundant information, which for our purposes is practically a non-issue. (If really needed, a 'git gc' call can be done eventually to try to compact the fetched packs, although a save in disk space is not actually guaranteed.) --- src/buildtool/file_system/git_cas.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/file_system/git_cas.hpp') diff --git a/src/buildtool/file_system/git_cas.hpp b/src/buildtool/file_system/git_cas.hpp index 03b772bc..44b61cb4 100644 --- a/src/buildtool/file_system/git_cas.hpp +++ b/src/buildtool/file_system/git_cas.hpp @@ -64,7 +64,7 @@ class GitCAS { // IMPORTANT: the GitContext needs to be initialized before any git object! GitContext git_context_{}; // maintains a Git context while CAS is alive std::unique_ptr odb_{nullptr, odb_closer}; - // git folder path of repo; used for logging + // git folder path of repo std::filesystem::path git_path_{}; [[nodiscard]] auto OpenODB(std::filesystem::path const& repo_path) noexcept -- cgit v1.2.3