Check for diverged branches.
Check for fast-forward pushes during push. Fixes #494 Check for fast-forwarding during pull. Fixes #666