Some GitModule methods fixed with invalid repository. Closes #1667