fix: don't log blank lines output by git to stderr
This commit is contained in:
parent
28da270834
commit
254f0c3ae9
1 changed files with 3 additions and 1 deletions
|
@ -168,7 +168,9 @@ pub fn status(context_: usize) Error!void {
|
|||
}.result, struct {
|
||||
fn result(_: usize, _: tp.pid_ref, output: []const u8) void {
|
||||
var it = std.mem.splitScalar(u8, output, '\n');
|
||||
while (it.next()) |line| std.log.err("{s}: {s}", .{ module_name, line });
|
||||
while (it.next()) |line|
|
||||
if (line.len > 0)
|
||||
std.log.err("{s}: {s}", .{ module_name, line });
|
||||
}
|
||||
}.result, exit_null(tag));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue