From: Kunal Mehta Date: Sun, 24 Jun 2018 20:55:43 +0000 (+0300) Subject: GitInfo: Don't try shelling out if it's disabled X-Git-Tag: 1.34.0-rc.0~4982 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=d503ac7c9433a36358b1db27c6365167ea869832;p=lhc%2Fweb%2Fwiklou.git GitInfo: Don't try shelling out if it's disabled Bug: T198037 Change-Id: I364f9bc0e78439474101f4b2a171805c91f50a72 --- diff --git a/includes/GitInfo.php b/includes/GitInfo.php index 6270b27fdd..363d7b8050 100644 --- a/includes/GitInfo.php +++ b/includes/GitInfo.php @@ -227,6 +227,7 @@ class GitInfo { $date = false; if ( is_file( $wgGitBin ) && is_executable( $wgGitBin ) && + !Shell::isDisabled() && $this->getHead() !== false ) { $cmd = [