diff options
author | Evangelos Foutras <evangelos@foutrelis.com> | 2020-07-22 20:24:24 +0300 |
---|---|---|
committer | jelle van der Waa <jelle@vdwaa.nl> | 2020-07-22 22:06:13 +0200 |
commit | 5e09c6acf88d069e789dc52822ed6d08fbf6afd5 (patch) | |
tree | 3740f42b0a2c86b4dd7a1923e4b4575360f3ff76 | |
parent | c20aba67644db0c6f77ec3a5be36022df6f34170 (diff) | |
download | archweb-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.py | 2 |
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) |