From 8a390462c84f656bdceceb168dc55759256a015e Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 28 Jan 2025 17:31:10 +0100 Subject: local api: absence of a git api is not a success in retrieving While there, also check for availability first, to avoid duplicated error messages (from git_cas and the caller). --- src/buildtool/execution_api/local/local_api.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/execution_api/local/local_api.hpp') diff --git a/src/buildtool/execution_api/local/local_api.hpp b/src/buildtool/execution_api/local/local_api.hpp index f554c573..7ee74be9 100644 --- a/src/buildtool/execution_api/local/local_api.hpp +++ b/src/buildtool/execution_api/local/local_api.hpp @@ -136,7 +136,7 @@ class LocalApi final : public IExecutionApi { }, [&git_api = git_api_, &raw_tree](Artifact::ObjectInfo const& info, int fd) { - return not git_api or + return git_api and git_api->IsAvailable(info.digest) and git_api->RetrieveToFds({info}, {fd}, raw_tree); }); } -- cgit v1.2.3