[Version Control] Fixed Git wrong repository detection.