fix a bug : output error msg when being in a directory which is not a git Not a git repository