You cannot merge a branch with itself

This warning has the following cause and solution: