Page MenuHomePhabricator

D13983.id33737.diff
No OneTemporary

D13983.id33737.diff

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() {

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 23, 7:13 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7389347
Default Alt Text
D13983.id33737.diff (611 B)

Event Timeline