| ... | @@ -29,7 +29,7 @@ pub fn getObject(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !string { | ... | @@ -29,7 +29,7 @@ pub fn getObject(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !string { |
| 29 | .cwd_dir = dir, | 29 | .cwd_dir = dir, |
| 30 | .argv = &.{ "git", "cat-file", "-p", obj }, | 30 | .argv = &.{ "git", "cat-file", "-p", obj }, |
| 31 | }); | 31 | }); |
| 32 | return result.stdout; | 32 | return std.mem.trimRight(u8, result.stdout, "\n"); |
| 33 | } | 33 | } |
| 34 | | 34 | |
| 35 | pub fn parseCommit(alloc: std.mem.Allocator, commitfile: string) !Commit { | 35 | pub fn parseCommit(alloc: std.mem.Allocator, commitfile: string) !Commit { |