summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2012-02-09 13:59:14 -0800
committerMonty Taylor <mordred@inaugust.com>2012-02-09 13:59:14 -0800
commit350909c915a9413ffcd171e7da454cdaf0bcd04f (patch)
treece68213aaa5f96f7e3b1a92fa38a3cd2323d354d
parent19955a536e1adecda8406871511a0f8907382173 (diff)
downloadgit-review-1.13.tar.gz
Workaround for OSX urlparse issue.1.13
Change-Id: Ib3a237f27dd2bc80570a07601f7ad3e42358195a
-rwxr-xr-xgit-review6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-review b/git-review
index fa3b1ab..eb0f6b9 100755
--- a/git-review
+++ b/git-review
@@ -221,8 +221,10 @@ def split_hostname(fetch_url):
# Workaround bug in urlparse on OSX
if parsed_url.scheme == "ssh" and hostname[:2] == "//":
- hostname = hostname[2:]
- hostname = hostname.split("/")[0]
+ hostname = hostname[2:].split("/")[0]
+ # Workaround bug in urlparse on OSX
+ elif parsed_url.scheme == "ssh" and path[:2] == "//":
+ hostname = path[2:].split("/")[0]
if "@" in hostname:
(username, hostname) = hostname.split("@")