Explorar o código

SubprocessGitClient: fixed git argv list for Popen

Stefan Zimmermann %!s(int64=9) %!d(string=hai) anos
pai
achega
c4d0cd0e5e
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      dulwich/client.py

+ 1 - 2
dulwich/client.py

@@ -697,8 +697,7 @@ class SubprocessGitClient(TraditionalGitClient):
         import subprocess
         if self.git_command is None:
             git_command = find_git_command()
-        argv = git_command + [service, path]
-        argv = ['git', service.decode('ascii'), path]
+        argv = git_command + [service.decode('ascii'), path]
         p = SubprocessWrapper(
             subprocess.Popen(argv, bufsize=0, stdin=subprocess.PIPE,
                              stdout=subprocess.PIPE,