소스 검색

Support username expansion in SSHGitClient

Use same expansion present in TCPGitClient

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
milki 12 년 전
부모
커밋
8e1d3256c5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      dulwich/client.py

+ 2 - 0
dulwich/client.py

@@ -622,6 +622,8 @@ class SSHGitClient(TraditionalGitClient):
         return self.alternative_paths.get(cmd, 'git-%s' % cmd)
 
     def _connect(self, cmd, path):
+        if path.startswith("/~"):
+            path = path[1:]
         con = get_ssh_vendor().connect_ssh(
             self.host, ["%s '%s'" % (self._get_cmd_path(cmd), path)],
             port=self.port, username=self.username)