From 9e1c90eb69e2dfd5fdf8418caa695112bd285f21 Mon Sep 17 00:00:00 2001 From: Oswin Nathanial Date: Fri, 9 Oct 2015 15:18:27 +0900 Subject: Raise exception when timeout is used in execute command on Windows Change-Id: I2e081c606b75b7f8d3d1ee82d93c3d9f3bdcfcbe --- git/cmd.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git/cmd.py') 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 -- cgit v1.2.1