summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
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