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)
Tue, Nov 26, 11:48 PM
Unknown Object (File)
Tue, Nov 26, 8:57 AM
Unknown Object (File)
Thu, Nov 21, 7:03 PM
Unknown Object (File)
Mon, Nov 18, 8:10 AM
Unknown Object (File)
Thu, Nov 14, 11:34 AM
Unknown Object (File)
Sun, Nov 10, 11:57 AM
Unknown Object (File)
Wed, Nov 6, 8:49 AM
Unknown Object (File)
Sat, Nov 2, 4:18 PM
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.