relax the check for local commits

we only want to catch the case where we have diverged from the remote,
not the case where we're behind