Skip to content

Commit

Permalink
Fix params initialization at GitHelper::commit()
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed May 23, 2018
1 parent 957940a commit 1c43ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helper/GitHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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));
}

/**
Expand Down

0 comments on commit 1c43ecc

Please sign in to comment.