In https://gerrit.wikimedia.org/r/#/c/130498/, @bd808 added support for caching GitInfo in JSON files. The actual method, that dumps the cache into a file - GitInfo::precomputeValues(), is never called, though, thus making a part of GitInfo actually useless.
I unfortunately lack experience with GitInfo, so it would be cool if someone else could fix this small bug.