Skip to content

Commit

Permalink
Prevent unknown option with git commands (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfietje authored Mar 3, 2023
1 parent b4431dd commit 22f232c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,10 @@ protected function runCommands($commands, InputInterface $input, OutputInterface
return $value;
}

if (substr($value, 0, 3) === 'git') {
return $value;
}

return $value.' --no-ansi';
}, $commands);
}
Expand All @@ -562,6 +566,10 @@ protected function runCommands($commands, InputInterface $input, OutputInterface
return $value;
}

if (substr($value, 0, 3) === 'git') {
return $value;
}

return $value.' --quiet';
}, $commands);
}
Expand Down

0 comments on commit 22f232c

Please sign in to comment.