| ... | ... | @@ -61,7 +61,7 @@ pub fn getHEAD(alloc: std.mem.Allocator, dir: std.fs.Dir) !CommitId { |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | fn ensureObjId(comptime T: type, input: string) T { |
| 64 | | extras.assertLog(input.len == 40, input); |
| 64 | extras.assertLog(input.len == 40, "ensureObjId: {s}", .{input}); |
| 65 | 65 | return .{ .id = input[0..40] }; |
| 66 | 66 | } |
| 67 | 67 | |
| ... | ... | @@ -643,7 +643,7 @@ pub fn getTags(alloc: std.mem.Allocator, dir: std.fs.Dir) ![]const Ref { |
| 643 | 643 | var jter = std.mem.split(u8, line, " "); |
| 644 | 644 | const id = ensureObjId(CommitId, jter.next().?).id; |
| 645 | 645 | const label = extras.trimPrefixEnsure(jter.rest(), "refs/tags/").?; |
| 646 | | extras.assertLog(!std.mem.endsWith(u8, label, "^{}"), label); |
| 646 | extras.assertLog(!std.mem.endsWith(u8, label, "^{}"), "{s}", .{label}); |
| 647 | 647 | |
| 648 | 648 | switch (try getType(alloc, dir, id)) { |
| 649 | 649 | .tree => continue, |
| ... | ... | @@ -660,7 +660,7 @@ pub fn getTags(alloc: std.mem.Allocator, dir: std.fs.Dir) ![]const Ref { |
| 660 | 660 | var kter = std.mem.split(u8, derefline, " "); |
| 661 | 661 | const id2 = ensureObjId(CommitId, kter.next().?).id; |
| 662 | 662 | const label2 = extras.trimPrefixEnsure(kter.rest(), "refs/tags/").?; |
| 663 | | extras.assertLog(std.mem.endsWith(u8, label2, "^{}"), label2); |
| 663 | extras.assertLog(std.mem.endsWith(u8, label2, "^{}"), "{s}", .{label2}); |
| 664 | 664 | std.debug.assert(std.mem.eql(u8, label, extras.trimSuffixEnsure(label2, "^{}").?)); |
| 665 | 665 | // extras.assertLog(try isType(alloc, dir, id2, .commit), id2); // linux kernel has a single tag that points at a tree |
| 666 | 666 | if (!(try isType(alloc, dir, id2, .commit)).?) continue; |