authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-06 16:11:51 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-06 16:11:51 -07:00
logec926ff81334a7a6def0bc99b88301febd2ede7c
tree1d39aaa32db4b5f9bdd2174acc12cbcf09b29626
parentd64fbcd9dfcf686e95636a06f3d2d5b1ad53282c

parseCommit: handle commits with no message


1 files changed, 1 insertions(+), 1 deletions(-)

git.zig+1-1
......@@ -114,7 +114,7 @@ pub fn parseCommit(alloc: std.mem.Allocator, commitfile: string) !Commit {
114114 var parents = std.ArrayList(CommitId).init(alloc);
115115 errdefer parents.deinit();
116116 while (true) {
117 const line = iter.next().?;
117 const line = iter.next() orelse break;
118118 if (line.len == 0) break;
119119 const space = std.mem.indexOfScalar(u8, line, ' ').?;
120120 const k = line[0..space];