authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-20 10:49:44 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-20 10:49:44 -07:00
logca7b874e8b8b600bcb9342a6e6f0e366a8572724
tree6ce63f0e0aaa2b7139b0608afc3fe34385b459e9
parent1e8374fff055a997d494d4323c3cdb1e48cc340d

ensureObjId: log the bad input if the assert ever fails


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

git.zig+1-1
...@@ -55,7 +55,7 @@ pub fn getHEAD(alloc: std.mem.Allocator, dir: std.fs.Dir) !CommitId {...@@ -55,7 +55,7 @@ pub fn getHEAD(alloc: std.mem.Allocator, dir: std.fs.Dir) !CommitId {
55}55}
5656
57fn ensureObjId(comptime T: type, input: string) T {57fn ensureObjId(comptime T: type, input: string) T {
58 std.debug.assert(input.len == 40);58 extras.assertLog(input.len == 40, input);
59 return .{ .id = input[0..40] };59 return .{ .id = input[0..40] };
60}60}
6161