Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14011285
D8326.id19800.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1016 B
Referenced Files
None
Subscribers
None
D8326.id19800.diff
View Options
diff --git a/src/applications/repository/engine/PhabricatorRepositoryRefEngine.php b/src/applications/repository/engine/PhabricatorRepositoryRefEngine.php
--- a/src/applications/repository/engine/PhabricatorRepositoryRefEngine.php
+++ b/src/applications/repository/engine/PhabricatorRepositoryRefEngine.php
@@ -247,6 +247,11 @@
'{node}\n',
hgsprintf('%s', $new_head));
}
+
+ $stdout = trim($stdout);
+ if (!strlen($stdout)) {
+ return array();
+ }
return phutil_split_lines($stdout, $retain_newlines = false);
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
if ($all_closing_heads) {
@@ -261,6 +266,11 @@
'%H',
$new_head);
}
+
+ $stdout = trim($stdout);
+ if (!strlen($stdout)) {
+ return array();
+ }
return phutil_split_lines($stdout, $retain_newlines = false);
default:
throw new Exception(pht('Unsupported VCS "%s"!', $vcs));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 1, 10:36 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6723416
Default Alt Text
D8326.id19800.diff (1016 B)
Attached To
Mode
D8326: Possibly fix issue where refs engine finds empty refs?
Attached
Detach File
Event Timeline
Log In to Comment