Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15410547
D16136.id38821.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16136.id38821.diff
View Options
diff --git a/src/applications/diffusion/query/lowlevel/DiffusionLowLevelGitRefQuery.php b/src/applications/diffusion/query/lowlevel/DiffusionLowLevelGitRefQuery.php
--- a/src/applications/diffusion/query/lowlevel/DiffusionLowLevelGitRefQuery.php
+++ b/src/applications/diffusion/query/lowlevel/DiffusionLowLevelGitRefQuery.php
@@ -70,6 +70,9 @@
return array();
}
+ $remote_prefix = 'refs/remotes/';
+ $remote_len = strlen($remote_prefix);
+
// NOTE: Although git supports --count, we can't apply any offset or
// limit logic until the very end because we may encounter a HEAD which
// we want to discard.
@@ -86,6 +89,12 @@
} else if (!strncmp($refname, $tag_prefix, $tag_len)) {
$short = substr($refname, $tag_len);
$type = $type_tag;
+ } else if (!strncmp($refname, $remote_prefix, $remote_len)) {
+ // If we've found a remote ref that we didn't recognize as naming a
+ // branch, just ignore it. This can happen if we're observing a remote,
+ // and that remote has its own remotes. We don't care about their
+ // state and they may be out of date, so ignore them.
+ continue;
} else {
$short = $refname;
$type = $type_ref;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 7:34 AM (3 w, 27 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712767
Default Alt Text
D16136.id38821.diff (1 KB)
Attached To
Mode
D16136: Ignore unrecognized refs in "refs/remotes/"
Attached
Detach File
Event Timeline
Log In to Comment