1. kankri
  2. hg-git

Commits

kankri  committed ca86479

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

  • Participants
  • Parent commits e008965
  • Branches url_tilde_fix

Comments (0)

Files changed (1)

File hggit/git_handler.py

View file
  • Ignore whitespace
             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/