diff options
author | Jakub Wilk <jwilk@jwilk.net> | 2015-07-15 13:27:02 +0200 |
---|---|---|
committer | Maximiliano Curia <maxy@debian.org> | 2015-09-29 16:03:55 +0200 |
commit | cfe83a99f4677b4684c894844efbbd5900486b7c (patch) | |
tree | 86c91833f04957fedc024c2bc9c5caa8c346bdbb | |
parent | ca8a5135e0e4371ce635f8719e1dde33c367ec3e (diff) |
clone: Fix parsing URLs as repository locations
Fixes #137
-rwxr-xr-x | git-hub | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |