aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--cgitize/cgit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgitize/cgit.py b/cgitize/cgit.py
index e2e872e..1fbddb7 100644
--- a/cgitize/cgit.py
+++ b/cgitize/cgit.py
@@ -44,11 +44,11 @@ class CGitRCWriter:
def _build_clone_url(self, repo):
clone_urls = []
- if repo.clone_url is not None:
- clone_urls.append(repo.clone_url)
cgit_clone_url = self.cgit_server.get_clone_url(repo)
if cgit_clone_url is not None:
clone_urls.append(cgit_clone_url)
+ if repo.clone_url is not None:
+ clone_urls.append(repo.clone_url)
if not clone_urls:
return None
clone_urls = ' '.join(clone_urls)