Allow any repo url

Like bb71d5f71a21ab466360009e4e6d1d56d29381c2, but without the github specific code, so it should work with basically every url, regardless of subfolder/subdomain.