Description: clone: Fix parsing URLs as repository locations
 Fixes #137
Author: Jakub Wilk <jwilk@jwilk.net>
X-Dgit-Generated: 0.9.0-2~ cfe83a99f4677b4684c894844efbbd5900486b7c

---

--- git-hub-0.9.0.orig/git-hub
+++ git-hub-0.9.0/git-hub
@@ -761,6 +761,7 @@ class CloneCmd (object):
 		if upstream.endswith('.git'): upstream = upstream[:-4]
 		if '/' in upstream:
 			(owner, proj) = upstream.split('/')[-2:]
+			upstream = '{}/{}'.format(owner, proj)
 			for repo in req.get('/user/repos'):
 				if repo['name'] == proj and repo['fork']:
 					break
