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
Unknown Object (File)
Mon, May 6, 4:19 AM
Unknown Object (File)
Fri, May 3, 2:26 AM
Unknown Object (File)
Mon, Apr 29, 1:55 PM
Unknown Object (File)
Sat, Apr 27, 3:22 PM
Unknown Object (File)
Sat, Apr 27, 7:42 AM
Unknown Object (File)
Wed, Apr 24, 10:01 PM
Unknown Object (File)
Sun, Apr 21, 4:07 PM
Unknown Object (File)
Sat, Apr 20, 5:31 PM
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
Branch
path1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25056
Build 34571: Run Core Tests
Build 34570: arc lint + arc unit