Ensure the git root is current when it is the same as the project directory