Circle-Ci build failed

This look like my actual case and also the followings:

https://discuss.circleci.com/t/builds-using-git-tags-failing/14904

Their solution was to disable cache of the .git folder before the checkout (to speedup checkout).
I’m sure it work but the checkout time can be long on some projects and their is no --depth configuration for git to save some data transfer.