IDEX-1586: cleanup git info if requested