Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F88744
D7744.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
825 B
Referenced Files
None
Subscribers
None
D7744.diff
View Options
diff --git a/src/applications/diffusion/conduit/ConduitAPI_diffusion_browsequery_Method.php b/src/applications/diffusion/conduit/ConduitAPI_diffusion_browsequery_Method.php
--- a/src/applications/diffusion/conduit/ConduitAPI_diffusion_browsequery_Method.php
+++ b/src/applications/diffusion/conduit/ConduitAPI_diffusion_browsequery_Method.php
@@ -100,6 +100,15 @@
$results = array();
foreach (explode("\0", rtrim($stdout)) as $line) {
+ if (substr_count($line, ' ') < 4) {
+ throw new Exception(
+ pht(
+ 'Expected "<mode> <type> <hash> <size> <name>", for ls-tree of '.
+ '"%s:%s", got: %s',
+ $commit,
+ $path,
+ $line));
+ }
// NOTE: Limit to 5 components so we parse filenames with spaces in them
// correctly.
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/4d/xt/kmy3gyw7eaq6xg5i
Default Alt Text
D7744.diff (825 B)
Attached To
Mode
D7744: Raise a better error for malformed `git ls-tree`
Attached
Detach File
Event Timeline
Log In to Comment