fixed checking if branch has upstream in task-connect