diff options
author | Oswin Nathanial <oswin.x.nathanial@sonymobile.com> | 2015-10-09 15:18:27 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2015-10-09 15:25:22 +0900 |
commit | 9e1c90eb69e2dfd5fdf8418caa695112bd285f21 (patch) | |
tree | 7aa34b763fa81964837c248ba7415135f6696380 /git/cmd.py | |
parent | cd4caf15a2e977fc0f010c1532090d942421979c (diff) | |
download | gitpython-9e1c90eb69e2dfd5fdf8418caa695112bd285f21.tar.gz |
Raise exception when timeout is used in execute command on Windows
Change-Id: I2e081c606b75b7f8d3d1ee82d93c3d9f3bdcfcbe
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -576,6 +576,8 @@ class Git(LazyMixin): 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 |