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
F15460900: D18678.id44845.diff
Tue, Apr 1, 3:15 AM
F15448129: D18678.diff
Fri, Mar 28, 3:17 AM
F15432788: D18678.id44846.diff
Mon, Mar 24, 7:38 PM
F15431090: D18678.diff
Mon, Mar 24, 10:26 AM
F15430303: D18678.id44845.diff
Mon, Mar 24, 6:59 AM
F15428966: D18678.id.diff
Sun, Mar 23, 11:46 PM
F15403294: D18678.diff
Tue, Mar 18, 2:39 AM
F15399124: D18678.id44846.diff
Mon, Mar 17, 3:00 AM
Subscribers

Diff Detail

Repository
rARC Arcanist
Branch
0
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18627
Build 25094: Run Core Tests
Build 25093: arc lint + arc unit

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.