From ecb6a45bf6d97000519b567d2e5269fffce780dd Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 9 May 2025 12:58:17 +0200 Subject: git_cas: Be explicit in hash type (raw or hex) when reading --- src/buildtool/file_system/git_repo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/file_system/git_repo.cpp') diff --git a/src/buildtool/file_system/git_repo.cpp b/src/buildtool/file_system/git_repo.cpp index c711510c..d63626a2 100644 --- a/src/buildtool/file_system/git_repo.cpp +++ b/src/buildtool/file_system/git_repo.cpp @@ -137,7 +137,7 @@ std::unordered_set const kNonSpecialGitFileModes{ return std::all_of(entries.begin(), entries.end(), [cas](auto entry) { auto const& [id, nodes] = entry; // if CAS given, check that the entry is in the object database - if (cas != nullptr and not cas->ReadHeader(id)) { + if (cas != nullptr and not cas->ReadHeader(id, /*is_hex_id=*/false)) { return false; } // for a given raw id, either all entries are trees or none of them -- cgit v1.2.3