gitweb: Remove invalid use of str.rstrip
rstrip is not a method to remove a string suffix so use proper Python way to do it.
It fixes the computation of some gitweb origin URLs.
Related to swh/infra/sysadm-environment#5051 (closed).
rstrip is not a method to remove a string suffix so use proper Python way to do it.
It fixes the computation of some gitweb origin URLs.
Related to swh/infra/sysadm-environment#5051 (closed).