Separate git repo stuff out from cache