|
@@ -663,7 +663,14 @@ class SubprocessGitClient(TraditionalGitClient):
|
|
|
|
|
|
git = ['git']
|
|
|
if sys.platform == 'win32':
|
|
|
- git = ['cmd', '/c'] + git
|
|
|
+ try:
|
|
|
+ import win32api
|
|
|
+ except ImportError:
|
|
|
+ git = ['cmd', '/c'] + git
|
|
|
+ else:
|
|
|
+ status, git = win32api.FindExecutable('git')
|
|
|
+
|
|
|
+ git = [git]
|
|
|
|
|
|
def _connect(self, service, path):
|
|
|
import subprocess
|