Skip to content

Commit 9e1c90e

Browse files
OswinNathanialdpursehouse
authored andcommitted
Raise exception when timeout is used in execute command on Windows
Change-Id: I2e081c606b75b7f8d3d1ee82d93c3d9f3bdcfcbe
1 parent cd4caf1 commit 9e1c90e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git/cmd.py

+2
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,8 @@ def execute(self, command,
576576

577577
if sys.platform == 'win32':
578578
cmd_not_found_exception = WindowsError
579+
if timeout:
580+
raise GitCommandError('"timeout" feature is not supported on Windows.')
579581
else:
580582
if sys.version_info[0] > 2:
581583
cmd_not_found_exception = FileNotFoundError # NOQA # this is defined, but flake8 doesn't know

0 commit comments

Comments
 (0)