Skip to content

Commit

Permalink
fix(Commands): Fix issue in CommitCommand
Browse files Browse the repository at this point in the history
- Change the `mustRun()` method to `run()` in the CommitCommand file
- This fixes the timeout issue when committing the message
  • Loading branch information
ityaozm@gmail.com committed Jan 3, 2024
1 parent af4baa6 commit 04d27f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Commands/CommitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function ($attempts) use ($cachedDiff): string {
$this->task(str_repeat(PHP_EOL, 2).'3. Committing message', function () use ($message): void {
tap($this->createProcess($this->getCommitCommand($message)), function (Process $process): void {
$this->shouldEdit() and $process->setTty(true);
})->setTimeout(null)->mustRun();
})->setTimeout(null)->run();
}, 'committing...'.PHP_EOL);

$this->output->success('Successfully generated and committed message.');
Expand Down

0 comments on commit 04d27f9

Please sign in to comment.