Check the length of current_branch.  If set, use that.