skip git clean if there is no .git directory
Merge remote-tracking branch 'origin/1.10' into 1.12