Avoid double tree load on repository init