summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_repo.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-05-09 12:58:17 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-06-04 14:34:44 +0200
commitecb6a45bf6d97000519b567d2e5269fffce780dd (patch)
treed947debc53778ff0d1b61f3af82d758730795df3 /src/buildtool/file_system/git_repo.cpp
parent314e28ee1a357a9b256e3c6c528c8a8a18989880 (diff)
downloadjustbuild-ecb6a45bf6d97000519b567d2e5269fffce780dd.tar.gz
git_cas: Be explicit in hash type (raw or hex) when reading
Diffstat (limited to 'src/buildtool/file_system/git_repo.cpp')
-rw-r--r--src/buildtool/file_system/git_repo.cpp2
1 files changed, 1 insertions, 1 deletions
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<git_filemode_t> 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