Page MenuHomePhabricator

D13983.id33751.diff
No OneTemporary

D13983.id33751.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,14 @@
}
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]);
+ $uri = rtrim($stdout);
+ if ($uri === 'origin') {
+ return null;
}
- return null;
+ return $uri;
}
public function getSourceControlPath() {

File Metadata

Mime Type
text/plain
Expires
Aug 23 2025, 12:30 PM (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8331232
Default Alt Text
D13983.id33751.diff (680 B)

Event Timeline