protect pull from wrong branch