From 96045ca390140fcc16cfac3a689ba6551156fefc Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 7 Sep 2018 00:25:26 +0200 Subject: [PATCH] flarum info: Try to fix STDERR redirection for Windows See the following articles for more information: - https://www.24k.com.sg/blog-27.html - https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout Refs #1562. --- src/Foundation/Console/InfoCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Foundation/Console/InfoCommand.php b/src/Foundation/Console/InfoCommand.php index f694a31eb..b42037171 100644 --- a/src/Foundation/Console/InfoCommand.php +++ b/src/Foundation/Console/InfoCommand.php @@ -116,7 +116,7 @@ class InfoCommand extends AbstractCommand $output = []; $status = null; - exec('git rev-parse HEAD 2> /dev/null', $output, $status); + exec('git rev-parse HEAD 2>&1', $output, $status); chdir($cwd);