Show More
@@ -484,9 +484,9 b' class GitRemote(RemoteBase):' | |||
|
484 | 484 | q = {"service": 'git-upload-pack'} |
|
485 | 485 | qs = f'?{urllib.parse.urlencode(q)}' |
|
486 | 486 | cu = f"{test_uri}{qs}" |
|
487 | req = urllib.request.Request(cu, None, {}) | |
|
488 | 487 | |
|
489 | 488 | try: |
|
489 | req = urllib.request.Request(cu, None, {}) | |
|
490 | 490 | log.debug("Trying to open URL %s", obfuscated_uri) |
|
491 | 491 | resp = o.open(req) |
|
492 | 492 | if resp.code != 200: |
@@ -502,7 +502,7 b' class GitRemote(RemoteBase):' | |||
|
502 | 502 | if b'service=git-upload-pack' in gitdata: |
|
503 | 503 | pass |
|
504 | 504 | elif re.findall(br'[0-9a-fA-F]{40}\s+refs', gitdata): |
|
505 |
# old style git can return some other format |
|
|
505 | # old style git can return some other format! | |
|
506 | 506 | pass |
|
507 | 507 | else: |
|
508 | 508 | e = None |
@@ -501,9 +501,9 b' class HgRemote(RemoteBase):' | |||
|
501 | 501 | q.update({'pairs': "{}-{}".format('0' * 40, '0' * 40)}) |
|
502 | 502 | qs = f'?{urllib.parse.urlencode(q)}' |
|
503 | 503 | cu = f"{test_uri}{qs}" |
|
504 | req = urllib.request.Request(cu, None, {}) | |
|
505 | 504 | |
|
506 | 505 | try: |
|
506 | req = urllib.request.Request(cu, None, {}) | |
|
507 | 507 | log.debug("Trying to open URL %s", obfuscated_uri) |
|
508 | 508 | resp = o.open(req) |
|
509 | 509 | if resp.code != 200: |
General Comments 0
You need to be logged in to leave comments.
Login now