The URL being constructed is only able to extract the correct username
when git@ or https:// URLs are found as the origin remote. This change
allows git:// to be used as well.
Signed-off-by: Maurice Kelly <osv-github@chatswood.org.uk>
Closes#11670.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>