Is there a schedule that cleans up [Data Directory]/system/caches/git/map and related subfolders?

Is there a schedule that cleans up [Data Directory]/system/caches/git/map and related subfolders?

I realize the value is “find things that were there before if something goes wrong” cool, love it, excellent.

What I'm looking for and struggling to find is “does some process clean this file/repo structure up periodically”?

What are the downsides to manually pruning things (ex: user created a VCS root and changed the URL to something impossible, thus the folder/map gets created, but it's now not valid at all, so it is just “garbage” in this location.

We don't have a tremendous number of VCS roots, some odd 150+-200, so we're not exactly in a pain point, but I would like “this is no longer used” to go away eventually or I should clean it up.

0
1 comment
Hi Cole,

TeamCity runs the Git garbage collector on local clones of the repositories periodically: https://www.jetbrains.com/help/teamcity/git.html#Git_gc
It is safe to manually delete unused mirrors.
It is also possible to reset the Git cache completely if necessary; however, it may negatively affect performance, as builds using those VCS Roots will run longer than usual after a reset because TeamCity will have to fetch the repositories from scratch rather than just applying the delta. This is a one-time performance hit.

Best regards,
Anton
0

Please sign in to leave a comment.