Page MenuHomePhabricator

Correct Git repository browse behavior for differences in "ls-tree" output
ClosedPublic

Authored by epriestley on Jan 25 2021, 5:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 4, 1:57 AM
Unknown Object (File)
Thu, Jun 4, 1:57 AM
Unknown Object (File)
Thu, Jun 4, 1:57 AM
Unknown Object (File)
Sat, May 30, 12:00 PM
Unknown Object (File)
Mar 31 2026, 10:33 PM
Unknown Object (File)
Mar 15 2026, 4:47 PM
Unknown Object (File)
Mar 9 2026, 2:49 AM
Unknown Object (File)
Mar 4 2026, 3:15 PM
Subscribers
None

Details

Summary

Ref T13589. The output for "git ls-tree commit:path" (the old invocation) and "git ls-tree commit -- path" (the new invocation) differs: the latter emits absolute paths.

Update the code to account for this difference in behavior.

Test Plan
  • Browsed a non-root directory in a Git repository in Diffusion.
  • Before: saw absolute paths.
  • After: saw relative paths.

Diff Detail

Repository
rP Phabricator
Branch
browse1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25032
Build 34538: Run Core Tests
Build 34537: arc lint + arc unit