Handle case there is no git project.