It's not part of this CL, but can you change the logic in the _calculateScmStatus() method below? Instead of checking for name == '.git', check if the folder return true for isScmPrivate().