Skip to content

Commit 08425b7

Browse files
committed
fixup! Use subprocess's timeout feature instead of reinventing the wheel
1 parent d557332 commit 08425b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

git/cmd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,8 @@ def execute(
12871287
# END stdout handling
12881288
except subprocess.TimeoutExpired as err:
12891289
_logger.info(
1290-
"error: process killed because it timed out. kill_after_timeout=%s seconds", kill_after_timeout,
1290+
"error: process killed because it timed out. kill_after_timeout=%s seconds",
1291+
kill_after_timeout,
12911292
)
12921293
if with_exceptions:
12931294
raise GitCommandError(redacted_command, status or 255, err.stderr, err.stdout) from err

0 commit comments

Comments
 (0)