Skip to content

Commit

Permalink
Merge branch 'ap/remote-hg-tilde-is-home-directory'
Browse files Browse the repository at this point in the history
* ap/remote-hg-tilde-is-home-directory:
  remote-hg: fix path when cloning with tilde expansion
  • Loading branch information
Junio C Hamano committed Sep 4, 2013
2 parents aaf4d39 + 33f66b2 commit 0335b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/remote-helpers/git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ def do_option(parser):

def fix_path(alias, repo, orig_url):
url = urlparse.urlparse(orig_url, 'file')
if url.scheme != 'file' or os.path.isabs(url.path):
if url.scheme != 'file' or os.path.isabs(os.path.expanduser(url.path)):
return
abs_url = urlparse.urljoin("%s/" % os.getcwd(), orig_url)
cmd = ['git', 'config', 'remote.%s.url' % alias, "hg::%s" % abs_url]
Expand Down

0 comments on commit 0335b64

Please sign in to comment.