Page MenuHomePhabricator

D21519.id51220.diff
No OneTemporary

D21519.id51220.diff

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

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)

Event Timeline