Prevent merging when the target branch is different from origin.

This prevents local commits on the target branch from being pushed
together.