mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-02 09:35:47 +01:00
Simplify absolute path fix
This actually works on Windows. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -1284,8 +1284,7 @@ def fix_path(alias, repo, orig_url):
|
||||
url = urlparse(orig_url, 'file')
|
||||
if url.scheme != 'file' or os.path.isabs(os.path.expanduser(url.path)):
|
||||
return
|
||||
abs_url = urljoin("%s/" % os.getcwd(), orig_url)
|
||||
cmd = ['git', 'config', 'remote.%s.url' % alias, "hg::%s" % abs_url]
|
||||
cmd = ['git', 'config', 'remote.%s.url' % alias, "hg::%s" % os.path.abspath(orig_url)]
|
||||
subprocess.call(cmd)
|
||||
|
||||
def main(args):
|
||||
|
Reference in New Issue
Block a user