Use the right default branch to log_rss_url()

This commit is contained in:
наб 2020-07-30 17:59:56 +02:00 committed by Drew DeVault
parent 350f0478da
commit 93656df280
1 changed files with 1 additions and 1 deletions

View File

@ -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,