Show More
@@ -240,8 +240,12 b' class httprepository(remoterepository):' | |||
|
240 | 240 | # this only happens with Python 2.3, later versions raise URLError |
|
241 | 241 | raise util.Abort(_('http error, possibly caused by proxy setting')) |
|
242 | 242 | # record the url we got redirected to |
|
243 |
|
|
|
244 | self._url = resp.geturl()[:-len(qs)] | |
|
243 | resp_url = resp.geturl() | |
|
244 | if resp_url.endswith(qs): | |
|
245 | resp_url = resp_url[:-len(qs)] | |
|
246 | if self._url != resp_url: | |
|
247 | self.ui.status(_('real URL is %s\n') % resp_url) | |
|
248 | self._url = resp_url | |
|
245 | 249 | try: |
|
246 | 250 | proto = resp.getheader('content-type') |
|
247 | 251 | except AttributeError: |
General Comments 0
You need to be logged in to leave comments.
Login now