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
F15439145: D21519.diff
Wed, Mar 26, 5:58 AM
F15431460: D21519.id.diff
Mon, Mar 24, 12:28 PM
F15408032: D21519.id51220.diff
Tue, Mar 18, 8:59 PM
F15393605: D21519.diff
Sat, Mar 15, 10:41 PM
F15377135: D21519.id51219.diff
Thu, Mar 13, 8:12 AM
F15367501: D21519.diff
Tue, Mar 11, 6:54 PM
F15306412: D21519.diff
Thu, Mar 6, 4:01 AM
F15283464: D21519.diff
Tue, Mar 4, 7:27 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
Branch
browse1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25032
Build 34538: Run Core Tests
Build 34537: arc lint + arc unit