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
F13158554: D21519.id51220.diff
Sun, May 5, 7:24 PM
Unknown Object (File)
Fri, May 3, 7:11 AM
Unknown Object (File)
Sun, Apr 28, 2:36 PM
Unknown Object (File)
Sun, Apr 28, 8:08 AM
Unknown Object (File)
Sat, Apr 27, 8:37 AM
Unknown Object (File)
Fri, Apr 26, 12:30 PM
Unknown Object (File)
Thu, Apr 25, 1:35 AM
Unknown Object (File)
Sat, Apr 20, 5:31 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