[damned-lies] Fixes #106 - Changed commit log URL for GitLab



commit 9ad9a022770477e03efba81df5bd1da8f6a28c89
Author: Claude Paroz <claude 2xlibre net>
Date:   Thu Oct 4 18:30:56 2018 +0200

    Fixes #106 - Changed commit log URL for GitLab

 stats/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/stats/models.py b/stats/models.py
index 3836ebc0..35818df0 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -304,7 +304,7 @@ class Branch(models.Model):
     def get_vcs_web_log_url(self):
         """ Link to browsable commit log """
         if self.module.vcs_type == 'git':
-            return utils.url_join(self.module.vcs_web, "log", "?h=%s" % self.name)
+            return utils.url_join(self.module.vcs_web, 'commits', 'master')
         else:
             # Not implemented for other VCS
             return ""


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]