protected static function initRepository(Binary $git, $path, $initArguments = null) { $initArguments = $initArguments ?: array(); /** @var $result CallResult */ $result = $git->{'init'}($path, $initArguments); $result->assertSuccess(sprintf('Cannot initialize a Git repository in "%s"', $path)); }