From fb75cdc710f5b3fcfb311fef67ed73912be6da6b Mon Sep 17 00:00:00 2001 From: Michael Zetterberg Date: Thu, 26 Jun 2025 13:24:10 +0200 Subject: [PATCH] fix(netlify-plugin-branch-sync): use 'FETCH_HEAD' instead of 'origin/${SYNC_SOURCE}' as push source in refspec --- apps/scandic-web/netlify-plugin-branch-sync/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scandic-web/netlify-plugin-branch-sync/index.js b/apps/scandic-web/netlify-plugin-branch-sync/index.js index 87441158f..5f3948142 100644 --- a/apps/scandic-web/netlify-plugin-branch-sync/index.js +++ b/apps/scandic-web/netlify-plugin-branch-sync/index.js @@ -137,7 +137,7 @@ export const onPreBuild = async function ({ utils }) { CLONE_DIR, "push", "origin", - `origin/${SYNC_SOURCE}:${branch}`, + `FETCH_HEAD:${branch}`, ]) console.log(`Successfully synced '${branch}' with '${SYNC_SOURCE}'`) }