Commit 2ca1fad7298 for woocommerce

commit 2ca1fad72987731d62fdd70a8937f00a649c5bdf
Author: Luigi Teschio <gigitux@gmail.com>
Date:   Thu Oct 22 17:03:55 2026 +0200

    Install patched Git before cherry-pick checkouts (#70143)

    * Install patched Git before cherry-pick checkouts

    * Add changelog entry for patched Git in backport automation

diff --git a/.github/workflows/shared-cherry-pick.yml b/.github/workflows/shared-cherry-pick.yml
index 9ae980af0f7..7c766a5dfb2 100644
--- a/.github/workflows/shared-cherry-pick.yml
+++ b/.github/workflows/shared-cherry-pick.yml
@@ -223,6 +223,16 @@ jobs:
       error_message: ${{ steps.aggregate-status.outputs.error_message }}
       cherry_pick_pr_number: ${{ steps.aggregate-status.outputs.cherry_pick_pr_number }}
     steps:
+      # Use Ubuntu's patched Git instead of the preinstalled build: actions/runner-images#15014.
+      - name: Install patched Git
+        run: |
+          . /etc/os-release
+          sudo apt-get update
+          sudo apt-get install --yes --allow-downgrades \
+            "git/${VERSION_CODENAME}-security" \
+            "git-man/${VERSION_CODENAME}-security"
+          dpkg-query --show git
+
       - name: Checkout target branch
         uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
         with:
diff --git a/plugins/woocommerce/changelog/fix-cherry-pick-patched-git b/plugins/woocommerce/changelog/fix-cherry-pick-patched-git
new file mode 100644
index 00000000000..5c48ff889e2
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-cherry-pick-patched-git
@@ -0,0 +1,5 @@
+Significance: patch
+Type: dev
+Comment: Install patched Git for backport automation; no production change.
+
+