[5.x] Fix target .git
repo handling when exporting starter kit with --clear
#25229
Loading
.git
repo handling when exporting starter kit with --clear
#25229