diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index 924b446..fed5e61 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -196,7 +196,7 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s
 
     if [ -e "${scriptdir}/docs-build-patches/${branch}/" ]; then
         echo Adding patch for $branch
-        git am "${scriptdir}/docs-build-patches/${branch}/"000*
+        git apply -3 "${scriptdir}/docs-build-patches/${branch}/"000*
     fi
 
     git checkout origin/master sphinx-static/switchers.js.in set_versions.py
