╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │1196 - .stderr = .ignore, │ │1203 + .stderr = .inherit, │ │1204 }); │ │1205 + defer process.kill(io); │ │1206 const term = try process.wait(io); │ │1199 - if (term != .exited or term.exited != 0) { │ │1200 - return error.GitCommandFailed; │ │1201 - } │ │1207 + if (term != .exited or term.exited != 0) return error.GitCommandFailed;│ │1208 } │ │1209 │ │1210 // make sure shallow clone was successful │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1219 { │ │1220 var process = try std.process.spawn(io, .{ │ │1221 .argv = if (is_ssh) │ │1216 - &.{ "git", "-c", ssh_config_arg, "clone", "--filter=blob:none", remote_url, "client" } │ │1222 + &.{ "git", "-c", ssh_config_arg, "clone", "--quiet", "--filter=blob:none", remote_url, "client" }│ │1223 else │ │1218 - &.{ "git", "clone", "--filter=blob:none", remote_url, "client" }, │ │1224 + &.{ "git", "clone", "--quiet", "--filter=blob:none", remote_url, "client" }, │ │1225 .cwd = .{ .path = temp_path }, │ │1226 .stdin = .ignore, │ │1227 .stdout = .ignore, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │1222 - .stderr = .ignore, │ │1228 + .stderr = .inherit, │ │1229 }); │ │1230 + defer process.kill(io); │ │1231 const term = try process.wait(io); │ │1225 - if (term != .exited or term.exited != 0) { │ │1226 - return error.GitCommandFailed; │ │1227 - } │ │1232 + if (term != .exited or term.exited != 0) return error.GitCommandFailed;│ │1233 } │ │1234 │ │1235 // make sure partial clone was successful │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1244 { │ │1245 var process = try std.process.spawn(io, .{ │ │1246 .argv = if (is_ssh) │ │1242 - &.{ "git", "-c", ssh_config_arg, "clone", "--filter=tree:0", remote_url, "client" } │ │1247 + &.{ "git", "-c", ssh_config_arg, "clone", "--quiet", "--filter=tree:0", remote_url, "client" }│ │1248 else │ │1244 - &.{ "git", "clone", "--filter=tree:0", remote_url, "client" }, │ │1249 + &.{ "git", "clone", "--quiet", "--filter=tree:0", remote_url, "client" }, │ │1250 .cwd = .{ .path = temp_path }, │ │1251 .stdin = .ignore, │ │1252 .stdout = .ignore, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │1248 - .stderr = .ignore, │ │1253 + .stderr = .inherit, │ │1254 }); │ │1255 + defer process.kill(io); │ │1256 const term = try process.wait(io); │ │1251 - if (term != .exited or term.exited != 0) { │ │1252 - return error.GitCommandFailed; │ │1253 - } │ │1257 + if (term != .exited or term.exited != 0) return error.GitCommandFailed;│ │1258 } │ │1259 │ │1260 // make sure treeless clone was successful │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1352 }; │ │1353 │ │1354 if (shell_out_to_git) { │ │1351 - const priv_key_path = try std.fs.path.join(allocator, &.{ temp_path, "key" }); │ │1352 - defer allocator.free(priv_key_path); │ │1353 - const ssh_config_arg = try std.fmt.allocPrint(allocator, "core.sshCommand=ssh -p {} -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o IdentityFile={s}", .{ port + 1, priv_key_path });│ │1355 + const ssh_cmd = (try sshCommand(true, allocator, temp_path, port)).?; │ │1356 + defer allocator.free(ssh_cmd); │ │1357 + const ssh_config_arg = try std.fmt.allocPrint(allocator, "core.sshCommand={s}", .{ssh_cmd}); │ │1358 defer allocator.free(ssh_config_arg); │ │1359 │ │1360 { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │1361 var process = try std.process.spawn(io, .{ │ │1362 .argv = if (is_ssh) │ │1359 - &.{ "git", "-c", ssh_config_arg, "pull", "origin", "master" } │ │1363 + &.{ "git", "-c", ssh_config_arg, "pull", "--quiet", "origin", "master" }│ │1364 else │ │1361 - &.{ "git", "pull", "origin", "master" }, │ │1365 + &.{ "git", "pull", "--quiet", "origin", "master" }, │ │1366 .cwd = .{ .path = client_path }, │ │1367 .stdin = .ignore, │ │1368 .stdout = .ignore, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │1365 - .stderr = .ignore, │ │1369 + .stderr = .inherit, │ │1370 }); │ │1371 + defer process.kill(io); │ │1372 const term = try process.wait(io); │ │1368 - if (term != .exited or term.exited != 0) { │ │1369 - return error.GitCommandFailed; │ │1370 - } │ │1373 + if (term != .exited or term.exited != 0) return error.GitCommandFailed;│ │1374 } │ │1375 │ │1376 // make sure pull was successful │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │1386 { │ │1387 var process = try std.process.spawn(io, .{ │ │1388 .argv = if (is_ssh) │ │1386 - &.{ "git", "-c", ssh_config_arg, "fetch", "origin", "master" } │ │1389 + &.{ "git", "-c", ssh_config_arg, "fetch", "--quiet", "origin", "master" }│ │1390 else │ │1388 - &.{ "git", "fetch", "origin", "master" }, │ │1391 + &.{ "git", "fetch", "--quiet", "origin", "master" }, │ │1392 .cwd = .{ .path = client_path }, │ │1393 .stdin = .ignore, │ │1394 .stdout = .ignore, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │1392 - .stderr = .ignore, │ │1395 + .stderr = .inherit, │ │1396 }); │ │1397 + defer process.kill(io); │ │1398 const term = try process.wait(io); │ │1395 - if (term != .exited or term.exited != 0) { │ │1396 - return error.GitCommandFailed; │ │1397 - } │ │1399 + if (term != .exited or term.exited != 0) return error.GitCommandFailed;│ │1400 } │ │1401 │ │1402 // make sure fetch with want-ref was successful │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯