| ... | @@ -998,10 +998,8 @@ pub const Repository = struct { | ... | @@ -998,10 +998,8 @@ pub const Repository = struct { |
| 998 | const _type = base_obj.type; | 998 | const _type = base_obj.type; |
| 999 | const content = try list2.toOwnedSlice(r.gpa); | 999 | const content = try list2.toOwnedSlice(r.gpa); |
| 1000 | const obj: GitObject = .{ .type = _type, .content = content }; | 1000 | const obj: GitObject = .{ .type = _type, .content = content }; |
| 1001 | if (maybe_oid) |oid| | 1001 | _ = maybe_oid; |
| 1002 | try r.unpacked_loose_objects.put(r.gpa, oid, obj) | 1002 | try r.unpacked_objects.put(r.gpa, key, obj); |
| 1003 | else | | |
| 1004 | try r.unpacked_objects.put(r.gpa, key, obj); | | |
| 1005 | return obj; | 1003 | return obj; |
| 1006 | } | 1004 | } |
| 1007 | | 1005 | |