check repo and branch