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
F18848034: D21519.diff
Thu, Oct 30, 3:07 AM
F18772256: D21519.id.diff
Oct 9 2025, 1:26 AM
F18703088: D21519.id51220.diff
Sep 28 2025, 2:57 AM
F18602268: D21519.id.diff
Sep 13 2025, 2:38 PM
F18593566: D21519.diff
Sep 12 2025, 3:16 PM
F18571466: D21519.id51220.diff
Sep 10 2025, 5:03 AM
F18571464: D21519.id51219.diff
Sep 10 2025, 5:03 AM
F18391010: D21519.id51219.diff
Aug 29 2025, 7:16 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