Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CreateConventionalCommit.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CreateConventionalCommit
public function __invoke(Subject $subject, Body $body, Footer $footer, bool $addAllToStage): void
{
if ($addAllToStage) {
$this->exec('git add .');
$this->exec('git add -A');
}

$safeSubject = escapeshellarg((string)$subject);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/CreateConventionalCommitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testCreateConventionalCommitWithAddAllFlag(): void
->expects($this->exactly(2))
->method('exec')
->withConsecutive(
[$this->equalTo('git add .')],
[$this->equalTo('git add -A')],
[$this->equalTo("git commit -m 'subject' -m 'body' -m 'footer'")]
);

Expand Down