Skip to content

Commit 1c43ecc

Browse files
committed
Fix params initialization at GitHelper::commit()
1 parent 957940a commit 1c43ecc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Helper/GitHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ public function syncWithRemote($remote, $branchName = null)
667667

668668
public function commit($message, array $options = [])
669669
{
670-
$params = '';
670+
$params = [];
671671

672672
foreach ($options as $option => $value) {
673673
if (is_int($option)) {
@@ -681,7 +681,7 @@ public function commit($message, array $options = [])
681681
$tmpName = $this->filesystemHelper->newTempFilename();
682682
file_put_contents($tmpName, $message);
683683

684-
$this->processHelper->runCommand(array_merge(['git', 'commit', '-F', $tmpName], $params));
684+
$this->processHelper->runCommand(array_merge(['git', 'commit', '--file', $tmpName], $params));
685685
}
686686

687687
/**

0 commit comments

Comments
 (0)