diff --git a/src/Services/Git/GitonomyClient.php b/src/Services/Git/GitonomyClient.php index f7d90b9..32a6b6f 100644 --- a/src/Services/Git/GitonomyClient.php +++ b/src/Services/Git/GitonomyClient.php @@ -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; }