summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorOswin Nathanial <oswin.x.nathanial@sonymobile.com>2015-10-09 15:18:27 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2015-10-09 15:25:22 +0900
commit9e1c90eb69e2dfd5fdf8418caa695112bd285f21 (patch)
tree7aa34b763fa81964837c248ba7415135f6696380 /git/cmd.py
parentcd4caf15a2e977fc0f010c1532090d942421979c (diff)
downloadgitpython-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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/git/cmd.py b/git/cmd.py
index f093ca73..fd3e815b 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -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