Add '.git' suffix check for repo redirects
Add '.git' suffix check for repo redirects

This change checks if repo url has `.git` suffix and removes it
for the repo redirects update

Signed-off-by: Ivana Atanasova <86e73595f14df5226ef437d57671288872a8681c@iyovcheva-a02.vmware.com>

OSSHealth/ghdata,OSSHealth/ghdata,OSSHealth/ghdata