Localisation updates from https://translatewiki.net.
[lhc/web/wiklou.git] / includes / GitInfo.php
index dc2fff1..304c1bc 100644 (file)
@@ -195,7 +195,10 @@ class GitInfo {
 
                if ( !isset( $this->cache['headCommitDate'] ) ) {
                        $date = false;
-                       if ( is_file( $wgGitBin ) && is_executable( $wgGitBin ) ) {
+                       if ( is_file( $wgGitBin ) &&
+                               is_executable( $wgGitBin ) &&
+                               $this->getHead() !== false
+                       ) {
                                $environment = array( "GIT_DIR" => $this->basedir );
                                $cmd = wfEscapeShellArg( $wgGitBin ) .
                                        " show -s --format=format:%ct HEAD";