if the TARGET_BRANCH variable is set, only apply when it is the current branch