| author | |
| committer | |
| log | d398facfc305601c6628d986fe9306a046066b7a |
| tree | 4b5087756dc31ec9b0ba8216f9482c65dab12e27 |
| parent | a76cb9d698e9f03b1e00b0b35b9c480901fe95e7 |
| signature |
1 files changed, 2 insertions(+), 4 deletions(-)
git.zig+2-4| ... | ... | @@ -998,10 +998,8 @@ pub const Repository = struct { |
| 998 | 998 | const _type = base_obj.type; |
| 999 | 999 | const content = try list2.toOwnedSlice(r.gpa); |
| 1000 | 1000 | const obj: GitObject = .{ .type = _type, .content = content }; |
| 1001 | if (maybe_oid) |oid| | |
| 1002 | try r.unpacked_loose_objects.put(r.gpa, oid, obj) | |
| 1003 | else | |
| 1004 | try r.unpacked_objects.put(r.gpa, key, obj); | |
| 1001 | _ = maybe_oid; | |
| 1002 | try r.unpacked_objects.put(r.gpa, key, obj); | |
| 1005 | 1003 | return obj; |
| 1006 | 1004 | } |
| 1007 | 1005 |