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

Authored by epriestley on Oct 4 2017, 3:22 PM.