Skip to content

Commit

Permalink
correct output for remotes list
Browse files Browse the repository at this point in the history
  • Loading branch information
pheeque1 committed Apr 4, 2023
1 parent 3023a1d commit ee59868
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Services/Git/GitonomyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public function getRemotes(?string $for = 'push'): array

$remotes = explode(PHP_EOL, rtrim($this->run(GitCommand::REMOTE, ['-v'])));

$map = [];
foreach ($remotes as $mixed) {
[$key, $value] = explode("\t", $mixed);
$map[$key] = strtok($value, " ");
}
$remotes = $map;

return $remotes;
}

Expand Down

0 comments on commit ee59868

Please sign in to comment.