Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-05-24 20:26:56 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-05-24 20:26:56 (GMT)
commit97293a56659980afb3f5a414cd2ede5526f53f66 (patch)
treefb5f898d0974735819d6e2ef8cc474ffe43f61aa
parent2a9e353bbaa73caf3e35064def8641dd1ca0bcad (diff)
Append .git
-rw-r--r--repos.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/repos.py b/repos.py
index 2595de7..e459bea 100644
--- a/repos.py
+++ b/repos.py
@@ -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