update repo , restrict length