summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvangelos Foutras <evangelos@foutrelis.com>2020-07-22 20:24:24 +0300
committerjelle van der Waa <jelle@vdwaa.nl>2020-07-22 22:06:13 +0200
commit5e09c6acf88d069e789dc52822ed6d08fbf6afd5 (patch)
tree3740f42b0a2c86b4dd7a1923e4b4575360f3ff76
parentc20aba67644db0c6f77ec3a5be36022df6f34170 (diff)
downloadarchweb-5e09c6acf88d069e789dc52822ed6d08fbf6afd5.tar.gz
archweb-5e09c6acf88d069e789dc52822ed6d08fbf6afd5.zip
Include package branch in svntogit links
Git log operations on the master branch take too long to finish and the history pages on GitHub time out because of this. Switch to using the package branches similar to how it was done when svntogit was on cgit. Fixes: https://github.com/archlinux/archweb/issues/290
-rw-r--r--main/templatetags/details_link.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/templatetags/details_link.py b/main/templatetags/details_link.py
index d5a2ebf7..46f9520a 100644
--- a/main/templatetags/details_link.py
+++ b/main/templatetags/details_link.py
@@ -21,7 +21,7 @@ def details_link(pkg):
@register.simple_tag
def scm_link(package, operation):
parts = (package.repo.svn_root, operation, package.pkgbase)
- linkbase = ("https://github.com/archlinux/svntogit-%s/%s/master/%s/trunk")
+ linkbase = ("https://github.com/archlinux/svntogit-%s/%s/packages/%s/trunk")
return linkbase % tuple(urlquote(part.encode('utf-8')) for part in parts)