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
F13221975: D21519.diff
Sun, May 19, 3:13 AM
F13212152: D21519.id51219.diff
Fri, May 17, 6:25 AM
F13204592: D21519.diff
Wed, May 15, 12:44 AM
F13187696: D21519.diff
Sat, May 11, 4:41 AM
Unknown Object (File)
Tue, May 7, 2:26 PM
Unknown Object (File)
Tue, May 7, 7:55 AM
Unknown Object (File)
Sun, May 5, 7:24 PM
Unknown Object (File)
Fri, May 3, 7:11 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