cgit: remove the repository urls's trailing /
Ensure the behavior is the same when a base url is provided or not
Related to T3013#57810