In CHECKOUT phase there are 2 steps: ‘restoring source cache’ and 'checkout’
Could someone explain why CircleCI is restoring my .git folder before checking out the repo ?
and why I ended with git errors after checking out my repo ?
See "git help gc" for manual housekeeping.
error: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log.
Automatic cleanup will not be performed until the file is removed.
error: Could not read f4e6d03ae3a8c70442298476231d34e935356d92
fatal: Failed to traverse parents of commit 76d87db51d6dc6406afaf7cb974f9a1b2873d976
error: failed to run repack
Interesting! I’m trying to make our “restoring source cache” step faster. I might try some git repo hacking to make it smaller, similar to what you did here to fix errors with the cache. I’ve posted a separate question about the source cache performance: