fixed a use case when folder already exists but it is a non git repo