[improvment] fix bug

fix a bug that show clean when a dir is not a git repo