On Windows, if you run the upload command and .git is not in any parent directory, you get an infinite loop: https://github.com/scrutinizer-ci/ocular/blob/master/src/Scrutinizer/Ocular/Command/CodeCoverage/UploadCommand.php#L104
$dir will eventually become the drive letter, for example: C:\