diff options
Diffstat (limited to 'git_config.py')
| -rw-r--r-- | git_config.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/git_config.py b/git_config.py index ed5a44a4..971d1467 100644 --- a/git_config.py +++ b/git_config.py | |||
| @@ -273,9 +273,12 @@ class Remote(object): | |||
| 273 | u = self.review | 273 | u = self.review |
| 274 | if not u.startswith('http:') and not u.startswith('https:'): | 274 | if not u.startswith('http:') and not u.startswith('https:'): |
| 275 | u = 'http://%s' % u | 275 | u = 'http://%s' % u |
| 276 | if not u.endswith('/'): | 276 | if u.endswith('/Gerrit'): |
| 277 | u += '/' | 277 | u = u[:len(u) - len('/Gerrit')] |
| 278 | u += 'ssh_info' | 278 | if not u.endswith('/ssh_info'): |
| 279 | if not u.endswith('/'): | ||
| 280 | u += '/' | ||
| 281 | u += 'ssh_info' | ||
| 279 | 282 | ||
| 280 | try: | 283 | try: |
| 281 | info = urlopen(u).read() | 284 | info = urlopen(u).read() |
