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
Unknown Object (File)
Wed, Jun 10, 8:12 PM
Unknown Object (File)
Feb 25 2026, 9:49 PM
Unknown Object (File)
Jan 30 2026, 2:26 AM
Unknown Object (File)
Jan 27 2026, 3:05 PM
Unknown Object (File)
Oct 26 2025, 8:05 PM
Unknown Object (File)
Sep 21 2025, 1:00 AM
Unknown Object (File)
Sep 19 2025, 11:32 AM
Unknown Object (File)
Sep 19 2025, 10:45 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.