From: grunny Date: Fri, 6 Apr 2012 13:56:26 +0000 (+1000) Subject: (bug 35751) Fix git revision links on Special:Version X-Git-Tag: 1.31.0-rc.0~24001^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=08165793fcaafe6d1a93a4b43b4e8dbf2bd92437;p=lhc%2Fweb%2Fwiklou.git (bug 35751) Fix git revision links on Special:Version When .git isn't used in the clone URL, links currently break Change-Id: Ia69e1bfea91ef50c126896b374a083447db4481f --- diff --git a/includes/GitInfo.php b/includes/GitInfo.php index 82c01f7b10..595043a194 100644 --- a/includes/GitInfo.php +++ b/includes/GitInfo.php @@ -148,6 +148,9 @@ class GitInfo { } $url = $remote['url']; + if ( substr( $url, -4 ) !== '.git' ) { + $url .= '.git'; + } foreach( $this->viewers as $repo => $viewer ) { $m = array(); $pattern = '#^' . $repo . '$#';