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
F19873639: D21519.diff
Sun, Mar 15, 4:47 PM
F19826871: D21519.id.diff
Mon, Mar 9, 2:49 AM
F19814658: D21519.diff
Wed, Mar 4, 3:15 PM
F19804969: D21519.diff
Mon, Mar 2, 5:14 PM
F19803740: D21519.id51219.diff
Mon, Mar 2, 1:40 AM
F19803739: D21519.id51219.diff
Mon, Mar 2, 1:40 AM
F19525630: D21519.diff
Jan 18 2026, 10:47 AM
F19525619: D21519.diff
Jan 18 2026, 10:42 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable