Skip to content
This repository has been archived by the owner on Jul 17, 2021. It is now read-only.

Commit

Permalink
fix proxying options
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-feek committed Sep 16, 2017
1 parent 8703240 commit ae60551
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Commands/CommitHooks/CommitHookCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ public function handle()

$this->line('git hook invoking: ' . $commandName . ' ' . implode($arguments, ' '));

$statusCode = $this->call($commandName, $arguments);
// `call` expects commands to be in the format ['--flag' => true]. We need to turn this flat array into an associative array
$formattedArguments = [];
foreach ($arguments as $argument) {
$formattedArguments[$argument] = true;
}

$statusCode = $this->call($commandName, $formattedArguments);

if ($statusCode !== 0) {
$this->error('git hook check failed');
Expand Down

0 comments on commit ae60551

Please sign in to comment.