Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F19815474
D18920.id45381.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
681 B
Referenced Files
None
Subscribers
None
D18920.id45381.diff
View Options
diff --git a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
--- a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
+++ b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
@@ -399,6 +399,12 @@
'ls-remote %P',
$remote_envelope);
+ // Totally empty repositories have no refs, and return the empty string; the
+ // code below assumes at least one line.
+ if (strlen($stdout) == 0) {
+ return array();
+ }
+
$map = array();
$lines = phutil_split_lines($stdout, false);
foreach ($lines as $line) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 5 2026, 9:21 PM (6 w, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
9091312
Default Alt Text
D18920.id45381.diff (681 B)
Attached To
Mode
D18920: Don't error when trying to mirror or observe an empty repository
Attached
Detach File
Event Timeline
Log In to Comment