commit | 85ba2db5f0950205cfd621ee9cb33a78af33778d | [log] [tgz] |
---|---|---|
author | Fei Shao <fshao@chromium.org> | Tue Mar 11 17:48:43 2025 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 12 05:19:34 2025 |
tree | 6a8a705f664c3d29ef7b6b1dd8286d824a6ce3c8 | |
parent | 35395b0852d9a78a3afbdd4c2cd923af5ea03e21 [diff] |
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>