Page MenuHomePhabricator

Fix parsing of Git branches with common and useful name "0"
ClosedPublic

Authored by epriestley on Oct 4 2017, 3:23 PM.
Tags
None
Referenced Files
F18835918: D18678.diff
Sun, Oct 26, 8:05 PM
F18650546: D18678.id44845.diff
Sep 21 2025, 1:00 AM
F18646908: D18678.id44844.diff
Sep 19 2025, 11:32 AM
F18646688: D18678.diff
Sep 19 2025, 10:45 AM
F17704133: D18678.diff
Jul 16 2025, 3:05 AM
Unknown Object (File)
Jul 3 2025, 6:20 AM
Unknown Object (File)
May 18 2025, 11:50 PM
Unknown Object (File)
May 5 2025, 10:42 AM
Subscribers

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/repository/api/ArcanistGitAPI.php
500–502

This just improves behavior if we somehow happen to have a ref named refs/heads/ exactly, with no actual branch name. This "should" not be possible.

516

This is the actual bugfix, "0" is falsey.

This revision is now accepted and ready to land.Oct 4 2017, 3:29 PM
  • Also fix a nearly identical bug which prevented "0" from appearing in arc branch.
  • Found one more in arc land.
This revision was automatically updated to reflect the committed changes.