Merge "(bug 35751) Fix git revision links on Special:Version"
authorBrion VIBBER <brion@wikimedia.org>
Fri, 6 Apr 2012 18:52:40 +0000 (18:52 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 6 Apr 2012 18:52:40 +0000 (18:52 +0000)
includes/GitInfo.php

index 82c01f7..595043a 100644 (file)
@@ -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 . '$#';