diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-24 20:26:56 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-24 20:26:56 (GMT) |
commit | 97293a56659980afb3f5a414cd2ede5526f53f66 (patch) | |
tree | fb5f898d0974735819d6e2ef8cc474ffe43f61aa | |
parent | 2a9e353bbaa73caf3e35064def8641dd1ca0bcad (diff) |
Append .git
-rw-r--r-- | repos.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -21,7 +21,8 @@ def get_by_url(url): return repo if url.startswith("https://github.com"): - if repo.url == url.replace("https://", "git://"): + git_protocol_url = url.replace("https://", "git://") + ".git" + if repo.url == git_protocol_url: return repo return None |