Skip to content
Snippets Groups Projects
Commit ca86479d authored by Risto Kankkunen's avatar Risto Kankkunen
Browse files

Make the path part of URL contain a leading slash only if it's not followed by tilde. (issue #71)

parent e0089655
No related branches found
No related tags found
No related merge requests found
......@@ -1345,7 +1345,7 @@
res = git_match.groupdict()
transport = client.SSHGitClient if 'ssh' in res['scheme'] else client.TCPGitClient
host, port, sepr, path = res['host'], res['port'], res['sepr'], res['path']
if sepr == '/':
if sepr == '/' and not path.startswith('~'):
path = '/' + path
# strip trailing slash for heroku-style URLs
# ssh+git://git@heroku.com:project.git/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment