mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-02-22 11:39:03 +01:00
(stable) Promote 2016 Week 53
This commit is contained in:
commit
e8b580d2e5
1 changed files with 4 additions and 2 deletions
|
@ -544,8 +544,10 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
|
||||||
}
|
}
|
||||||
|
|
||||||
$uri = rtrim($stdout);
|
$uri = rtrim($stdout);
|
||||||
// 'origin' is what ls-remote outputs if no origin remote URI exists
|
// ls-remote echos the remote name (ie 'origin') if no remote URI is found
|
||||||
if (!$uri || $uri === 'origin') {
|
// TODO: In 2.7.0 (circa 2016) git introduced `git remote get-url`
|
||||||
|
// with saner error handling.
|
||||||
|
if (!$uri || $uri === $remote) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue