Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15408032
D21519.id51220.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
D21519.id51220.diff
View Options
diff --git a/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php b/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php
--- a/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php
+++ b/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php
@@ -138,12 +138,6 @@
$submodules = array();
- if ($path !== null) {
- $prefix = rtrim($path, '/').'/';
- } else {
- $prefix = '';
- }
-
$count = 0;
$results = array();
$lines = empty($stdout)
@@ -166,7 +160,7 @@
$line));
}
- list($mode, $type, $hash, $size, $name) = $parts;
+ list($mode, $type, $hash, $size, $full_path) = $parts;
$path_result = new DiffusionRepositoryPath();
@@ -184,8 +178,14 @@
}
}
- $path_result->setFullPath($prefix.$name);
- $path_result->setPath($name);
+ if ($path === null) {
+ $local_path = $full_path;
+ } else {
+ $local_path = basename($full_path);
+ }
+
+ $path_result->setFullPath($full_path);
+ $path_result->setPath($local_path);
$path_result->setHash($hash);
$path_result->setFileType($file_type);
$path_result->setFileSize($size);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 19, 8:59 PM (2 d, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223936
Default Alt Text
D21519.id51220.diff (1 KB)
Attached To
Mode
D21519: Correct Git repository browse behavior for differences in "ls-tree" output
Attached
Detach File
Event Timeline
Log In to Comment