diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-24 19:57:37 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-24 19:57:37 (GMT) |
commit | d3219b5b1e7075f5bffa461ba4b58eca76a63cc3 (patch) | |
tree | cffb7c9dd587733f56e739dcb59888ec32ef6d06 | |
parent | ffb93815101be88c31ab2d814dbe795b28ccc45c (diff) |
In replace old string is the second arg
-rw-r--r-- | repos.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -21,7 +21,7 @@ def get_by_url(url): return repo if url.startswith("https://github.com"): - if repo.url == url.replace("https://", "git://"): + if repo.url == url.replace("git://", "https://"): return repo return None |