From 7989f84299f52e851121afa3be0958c9a39e92f0 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. --- framework/core/src/Foundation/Console/InfoCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Foundation/Console/InfoCommand.php b/framework/core/src/Foundation/Console/InfoCommand.php index f694a31eb..b42037171 100644 --- a/framework/core/src/Foundation/Console/InfoCommand.php +++ b/framework/core/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);