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
F14851729: D21519.id51219.diff
Tue, Feb 4, 7:39 PM
Unknown Object (File)
Mon, Feb 3, 11:13 AM
Unknown Object (File)
Mon, Feb 3, 12:16 AM
Unknown Object (File)
Thu, Jan 23, 9:35 PM
Unknown Object (File)
Thu, Jan 23, 9:35 PM
Unknown Object (File)
Thu, Jan 23, 9:35 PM
Unknown Object (File)
Wed, Jan 22, 12:11 PM
Unknown Object (File)
Tue, Jan 21, 3:44 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable