~edwargix/git.sr.ht

93656df280d462e3d9664f8f003f39f9b4c8a643 — наб 4 years ago 350f047
Use the right default branch to log_rss_url()
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/urls.py
M gitsrht/urls.py => gitsrht/urls.py +1 -1
@@ 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,