From 1c43ecce5bc272055747ff9e99388b20638fb288 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Wed, 23 May 2018 10:03:11 -0300 Subject: [PATCH] Fix params initialization at `GitHelper::commit()` --- src/Helper/GitHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Helper/GitHelper.php b/src/Helper/GitHelper.php index 80bea7c0..c2c99623 100644 --- a/src/Helper/GitHelper.php +++ b/src/Helper/GitHelper.php @@ -667,7 +667,7 @@ public function syncWithRemote($remote, $branchName = null) public function commit($message, array $options = []) { - $params = ''; + $params = []; foreach ($options as $option => $value) { if (is_int($option)) { @@ -681,7 +681,7 @@ public function commit($message, array $options = []) $tmpName = $this->filesystemHelper->newTempFilename(); file_put_contents($tmpName, $message); - $this->processHelper->runCommand(array_merge(['git', 'commit', '-F', $tmpName], $params)); + $this->processHelper->runCommand(array_merge(['git', 'commit', '--file', $tmpName], $params)); } /**