diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-27 12:23:46 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-27 12:23:46 +0100 |
commit | bc8413186af28d1550f03081f2b2467de64d1585 (patch) | |
tree | 49031b8b0cc91f42386bfdafd152db0894bf41b3 | |
parent | workflows/ci: use GitHub token for unit tests (diff) | |
download | cgitize-bc8413186af28d1550f03081f2b2467de64d1585.tar.gz cgitize-bc8413186af28d1550f03081f2b2467de64d1585.zip |
put cgit server URL first
-rw-r--r-- | cgitize/cgit.py | 4 |
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) |