Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Raise exception when timeout is used in execute command on Windows
Change-Id: I2e081c606b75b7f8d3d1ee82d93c3d9f3bdcfcbe
  • Loading branch information
OswinNathanial authored and dpursehouse committed Oct 9, 2015
commit 9e1c90eb69e2dfd5fdf8418caa695112bd285f21
2 changes: 2 additions & 0 deletions git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ def execute(self, command,

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