Page MenuHomePhabricator

D18678.id44842.diff
No OneTemporary

D18678.id44842.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
@@ -497,6 +497,10 @@
return null;
}
+ if (!strlen($branch)) {
+ return null;
+ }
+
return $branch;
}
@@ -509,7 +513,7 @@
// Verify this, and strip it.
$ref = rtrim($stdout);
$branch = $this->getBranchNameFromRef($ref);
- if (!$branch) {
+ if ($branch === null) {
throw new Exception(
pht('Failed to parse %s output!', 'git symbolic-ref'));
}

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 9, 1:59 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7554625
Default Alt Text
D18678.id44842.diff (615 B)

Event Timeline