Page MenuHomePhabricator

Correct Diffusion browse behavior when visiting a path URI with no trailing slash
ClosedPublic

Authored by epriestley on Jan 28 2021, 12:34 AM.
Tags
None
Referenced Files
F19288415: D21528.diff
Tue, Dec 23, 7:27 AM
F18986859: D21528.id51243.diff
Nov 17 2025, 5:40 PM
F18840375: D21528.diff
Oct 28 2025, 12:07 AM
F18816590: D21528.id51243.diff
Oct 21 2025, 7:59 AM
F18806356: D21528.id.diff
Oct 18 2025, 7:06 PM
F18796442: D21528.diff
Oct 17 2025, 3:31 AM
F18787551: D21528.id.diff
Oct 15 2025, 12:15 AM
F18769666: D21528.id.diff
Oct 8 2025, 8:35 AM
Subscribers
None

Details

Summary

See PHI1983. Ref T13599. Ref T13589. Currently, if you browse to a path browse URI in Diffusion without a trailing slash (/browse/master/src), you get a nonsensical view (the directory as a single item).

Be more precise in how "git ls-tree" arguments are constructed.

Test Plan

Visited files and directories in the browse view, with and without trailing slashes. Saw improved behavior for directories with no trailing slash and reasonable behavior in all other cases.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable