Page MenuHomePhabricator

D8326.diff
No OneTemporary

D8326.diff

Index: src/applications/repository/engine/PhabricatorRepositoryRefEngine.php
===================================================================
--- src/applications/repository/engine/PhabricatorRepositoryRefEngine.php
+++ 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

Mime Type
text/plain
Expires
Wed, Dec 25, 10:54 AM (10 h, 31 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6925980
Default Alt Text
D8326.diff (1001 B)

Event Timeline