test denyCurrentBranch