##// END OF EJS Templates
subrepo: use '/' for joining non-local paths
Matt Mackall -
r9186:f783bb97 default
parent child Browse files
Show More
@@ -107,7 +107,12 b' def _abssource(repo, push=False):'
107 107 source = repo._subsource
108 108 if source.startswith('/') or '://' in source:
109 109 return source
110 return os.path.join(_abssource(repo._subparent), repo._subsource)
110 parent = _abssource(repo._subparent)
111 if '://' in parent:
112 if parent[-1] == '/':
113 parent = parent[:-1]
114 return parent + '/' + source
115 return os.path.join(parent, repo._subsource)
111 116 if push and repo.ui.config('paths', 'default-push'):
112 117 return repo.ui.config('paths', 'default-push', repo.root)
113 118 return repo.ui.config('paths', 'default', repo.root)
General Comments 0
You need to be logged in to leave comments. Login now