change check for update git command to get curr. branch