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)
Fri, Apr 19, 6:52 PM
Unknown Object (File)
Tue, Apr 16, 5:45 PM
Unknown Object (File)
Sat, Apr 13, 5:24 PM
Unknown Object (File)
Sat, Apr 13, 10:58 AM
Unknown Object (File)
Sat, Apr 13, 10:00 AM
Unknown Object (File)
Sat, Apr 13, 9:44 AM
Unknown Object (File)
Sat, Apr 13, 8:39 AM
Unknown Object (File)
Tue, Apr 9, 6:06 PM
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.