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)
Wed, Jul 8, 10:22 PM
Unknown Object (File)
Wed, Jul 8, 1:15 AM
Unknown Object (File)
Mon, Jul 6, 2:04 PM
Unknown Object (File)
Mon, Jul 6, 11:00 AM
Unknown Object (File)
Fri, Jul 3, 4:51 PM
Unknown Object (File)
Thu, Jun 25, 1:10 AM
Unknown Object (File)
Mon, Jun 22, 9:37 PM
Unknown Object (File)
Sun, Jun 21, 6:59 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