generate and store repo tree