]> git.proxmox.com Git - mirror_linux-firmware.git/commitdiff
Add a workaround for gitlab.freedesktop.org pull requests
authorMario Limonciello <superm1@gmail.com>
Tue, 14 Nov 2023 04:02:26 +0000 (22:02 -0600)
committerMario Limonciello <superm1@gmail.com>
Tue, 14 Nov 2023 04:02:26 +0000 (22:02 -0600)
Some of these pull requests are submitted using git protocol
in the pull request which b4 won't be able to handle. Manually
swap out for the https protocol.

Signed-off-by: Mario Limonciello <superm1@gmail.com>
contrib/process_linux_firmware.py

index 46432a2d8dca67c778a004f132e055d9182243ed..668e35c0eb0600fcd4cde19c560a4b32a8dd8542 100755 (executable)
@@ -145,6 +145,13 @@ def delete_branch(branch):
 def process_pr(mbox, num, remote):
     branch = "robot/pr-{}-{}".format(num, int(time.time()))
 
+    # manual fixup for PRs from drm firmware repo
+    if "git@gitlab.freedesktop.org:drm/firmware.git" in mbox:
+        mbox = mbox.replace(
+            "git@gitlab.freedesktop.org:drm/firmware.git",
+            "https://gitlab.freedesktop.org/drm/firmware.git",
+        )
+
     cmd = ["b4", "--debug", "pr", "-b", branch, "-"]
     logging.debug("Running {}".format(cmd))
     p = subprocess.Popen(