diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-24 19:46:27 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-24 19:46:27 (GMT) |
commit | ffb93815101be88c31ab2d814dbe795b28ccc45c (patch) | |
tree | 81a4c58700ebcefc8c9245e6122b9ed7967ff975 | |
parent | 17a6c4210560285445e4de539214bf2eb6d5c513 (diff) |
Reverse https/git substitution
-rw-r--r-- | repos.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,8 +20,8 @@ def get_by_url(url): if repo.url == url: return repo - if url.startswith("git://github.com"): - if repo.url == url.replace("git://", "https://"): + if url.startswith("https://github.com"): + if repo.url == url.replace("https://", "git://"): return repo return None |