From d398facfc305601c6628d986fe9306a046066b7a Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 15 Jun 2026 21:12:51 -0700 Subject: [PATCH] getDeltadObject: always cache into unpacked_objects --- git.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/git.zig b/git.zig index a7c5054bc7d8f33d1362fd58f26786a9bb80c4ac..6a181b9d76b785b5647d0035aa2a7a8d02211fd7 100644 --- a/git.zig +++ b/git.zig @@ -998,10 +998,8 @@ pub const Repository = struct { const _type = base_obj.type; const content = try list2.toOwnedSlice(r.gpa); const obj: GitObject = .{ .type = _type, .content = content }; - if (maybe_oid) |oid| - try r.unpacked_loose_objects.put(r.gpa, oid, obj) - else - try r.unpacked_objects.put(r.gpa, key, obj); + _ = maybe_oid; + try r.unpacked_objects.put(r.gpa, key, obj); return obj; } -- 2.54.0