From d503ac7c9433a36358b1db27c6365167ea869832 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 24 Jun 2018 23:55:43 +0300 Subject: [PATCH] GitInfo: Don't try shelling out if it's disabled Bug: T198037 Change-Id: I364f9bc0e78439474101f4b2a171805c91f50a72 --- includes/GitInfo.php | 1 + 1 file changed, 1 insertion(+) 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 = [ -- 2.20.1