git-php
git-php copied to clipboard
remove --end-of-options option for git version < 2.24
Hello,
I thought about it and I don't want this directly in CliRunner. What about new Runner implementation?
class OldGitRunner extends CliRunner
{
public function run($cwd, array $args, array $env = NULL)
{
if (($key = array_search('--end-of-options', $args)) !== FALSE) {
unset($args[$key]);
}
parent::run($cwd, $args, $env);
}
}
$git = new CzProject\GitPhp\Git(new CzProject\GitPhp\Runners\OldGitRunner);
Implemented as bb195e30442bc5206b30fa9a304e20ea8e96458f