Mercurial > hg > hg-git
changeset 601:ca86479dd2d9
Make the path part of URL contain a leading slash only if it's not followed by tilde. (issue #71)
author | Risto Kankkunen <risto.kankkunen@iki.fi> |
---|---|
date | Thu, 11 Jul 2013 00:22:07 +0300 |
parents | e0089655caa6 |
children | 6da65b534370 |
files | hggit/git_handler.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -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/