fix a bug in which github :branch settings dont get respected

fix a bug in which github :branch settings dont get respected