diff --git a/src/repository/api/ArcanistGitAPI.php b/src/repository/api/ArcanistGitAPI.php --- a/src/repository/api/ArcanistGitAPI.php +++ b/src/repository/api/ArcanistGitAPI.php @@ -501,14 +501,9 @@ } public function getRemoteURI() { - list($stdout) = $this->execxLocal('remote show -n origin'); + list($stdout) = $this->execxLocal('ls-remote --get-url origin'); - $matches = null; - if (preg_match('/^\s*Fetch URL: (.*)$/m', $stdout, $matches)) { - return trim($matches[1]); - } - - return null; + return rtrim($stdout); } public function getSourceControlPath() {