fix(netlify-plugin-branch-sync): use 'FETCH_HEAD' instead of 'origin/${SYNC_SOURCE}' as push source in refspec
This commit is contained in:
@@ -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}'`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user