git.samba.org
/
jelmer
/
dulwich.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
113966a
)
Support git.bat on Windows
author
Stefan Zimmermann
<zimmermann.code@gmail.com>
Tue, 5 May 2015 23:02:22 +0000
(
01:02
+0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Thu, 7 May 2015 11:01:13 +0000
(11:01 +0000)
dulwich/client.py
patch
|
blob
|
history
diff --git
a/dulwich/client.py
b/dulwich/client.py
index 0764a41549712a8f9a56f198fde102a5a8c509d8..7131d57d0e3b98d34e510259e3ff5656732de3b8 100644
(file)
--- a/
dulwich/client.py
+++ b/
dulwich/client.py
@@
-661,9
+661,13
@@
class SubprocessGitClient(TraditionalGitClient):
del kwargs['stderr']
TraditionalGitClient.__init__(self, *args, **kwargs)
+ git = ['git']
+ if sys.platform == 'win32': # support .exe, .bat and .cmd
+ git = ['cmd', '/c'] + git
+
def _connect(self, service, path):
import subprocess
- argv =
['git',
service, path]
+ argv =
self.git + [
service, path]
p = SubprocessWrapper(
subprocess.Popen(argv, bufsize=0, stdin=subprocess.PIPE,
stdout=subprocess.PIPE,