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:
b5a4501
)
Support username expansion in SSHGitClient
author
milki
<milki@rescomp.berkeley.edu>
Thu, 10 Jan 2013 04:02:01 +0000
(20:02 -0800)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sat, 4 May 2013 16:05:20 +0000
(17:05 +0100)
Use same expansion present in TCPGitClient
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
dulwich/client.py
patch
|
blob
|
history
diff --git
a/dulwich/client.py
b/dulwich/client.py
index 28a066ac7bcfb1f6f6a4d4c7cf2f6ab340b96085..4b45f795009f81b978bdec817793c5cd170e77e8 100644
(file)
--- a/
dulwich/client.py
+++ b/
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)