From 93656df280d462e3d9664f8f003f39f9b4c8a643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 30 Jul 2020 17:59:56 +0200 Subject: [PATCH] Use the right default branch to log_rss_url() --- gitsrht/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht/urls.py b/gitsrht/urls.py index b3384e7..c94b96b 100644 --- a/gitsrht/urls.py +++ b/gitsrht/urls.py @@ -13,7 +13,7 @@ def clone_urls(repo): ] def log_rss_url(repo, ref=None): - ref = ref if ref != "master" else None + ref = ref if ref != repo.git_repo.default_branch_name() else None return url_for("repo.log_rss", owner=repo.owner.canonical_name, repo=repo.name, -- 2.38.4