aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-10-16 12:47:01 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-10-16 12:47:01 +0300
commitf7d91feebf1bd4e542c438e413257730686f9966 (patch)
tree0ab8e84fdeca22394be2b2b044df8afe966d0f3c
parenttest/unit: add Gitlab unit tests (diff)
downloadcgitize-f7d91feebf1bd4e542c438e413257730686f9966.tar.gz
cgitize-f7d91feebf1bd4e542c438e413257730686f9966.zip
fix an editing fuck-up
-rw-r--r--cgitize/repo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgitize/repo.py b/cgitize/repo.py
index 23098d4..d926ee9 100644
--- a/cgitize/repo.py
+++ b/cgitize/repo.py
@@ -53,7 +53,8 @@ class Repo:
https_url = url_remove_auth(https_urls[0]['href'])
ssh_urls = [link for link in src['links']['clone'] if link ['name'] == 'ssh']
- if len(ssh_urls) != 1: raise RuntimeError(f"no ssh:// clone URL for repository '{name}'?!")
+ if len(ssh_urls) != 1:
+ raise RuntimeError(f"no ssh:// clone URL for repository '{name}'?!")
ssh_url = ssh_urls[0]['href']
clone_url = ssh_url if config.main.clone_via_ssh else https_url