fromupstream: Remove "web." prefix from kernel.org URL

https://git.kernel.org now gets redirected to https://web.git.kernel.org
for web navigation, but the actual Git remote repository URL is unchanged.
That means if someone simply copy-paste the web URL for FROMGIT patches,
the script will just fail at Git fetch.

Silently remove the "web." prefix from the remote repository URL before
fetching the repository.

BUG=None
TEST=fromupstream.py --debug \
     'https://web.git.kernel.org/pub/scm/linux/kernel/git/mediatek/linux.git/commit/?h=for-next&id=da77c2d3d06c6fa36ed26a5a48490b80e4f94753'

Change-Id: I59d00018d9cccf58f3dd3fc57bada352a0453a95
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/6344071
Tested-by: Fei Shao <fshao@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@chromium.org>
Commit-Queue: Fei Shao <fshao@chromium.org>
1 file changed