Show More
@@ -202,8 +202,12 b' def _abssource(repo, push=False, abort=T' | |||||
202 | if parent[-1] == '/': |
|
202 | if parent[-1] == '/': | |
203 | parent = parent[:-1] |
|
203 | parent = parent[:-1] | |
204 | r = urlparse.urlparse(parent + '/' + source) |
|
204 | r = urlparse.urlparse(parent + '/' + source) | |
205 | r = urlparse.urlunparse((r[0], r[1], |
|
205 | if parent.startswith('ssh://'): | |
206 | posixpath.normpath(r[2]), |
|
206 | host, path = r[2][2:].split('/', 1) | |
|
207 | r2 = '//%s/%s' % (host, posixpath.normpath(path)) | |||
|
208 | else: | |||
|
209 | r2 = posixpath.normpath(r[2]) | |||
|
210 | r = urlparse.urlunparse((r[0], r[1], r2, | |||
207 | r[3], r[4], r[5])) |
|
211 | r[3], r[4], r[5])) | |
208 | return r |
|
212 | return r | |
209 | else: # plain file system path |
|
213 | else: # plain file system path |
General Comments 0
You need to be logged in to leave comments.
Login now