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, Dec 25, 1:58 PM
Unknown Object (File)
Fri, Dec 20, 11:49 AM
Unknown Object (File)
Mon, Dec 16, 8:42 AM
Unknown Object (File)
Sat, Dec 14, 1:54 PM
Unknown Object (File)
Sat, Dec 14, 1:38 AM
Unknown Object (File)
Thu, Dec 12, 1:00 PM
Unknown Object (File)
Sun, Dec 8, 11:40 PM
Unknown Object (File)
Thu, Dec 5, 7:09 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