Fix git status list new unreadable folder

#2350 retargeted against master.