Merged in chore/include-tags-when-syncing (pull request #3426)

Include tags when syncing master -> test

* include tags when syncing master -> test


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2026-01-13 12:40:57 +00:00
parent 8d34089637
commit dba4c81618

View File

@@ -106,13 +106,20 @@ export const onPreBuild = async function ({ utils }) {
logger.debug(`Cloning from ${cloneURL.replace(token, "****")}`)
logger.debug(`Cloning to ${CLONE_DIR}`)
await run("git", ["clone", "--bare", "--branch", SYNC_SOURCE, cloneURL, CLONE_DIR])
await run("git", [
"clone",
"--bare",
"--branch",
SYNC_SOURCE,
cloneURL,
CLONE_DIR,
])
}
// Always fetch to ensure FETCH_HEAD is available
logger.debug(`Fetching from origin`)
await run("git", ["-C", CLONE_DIR, "fetch", "--no-tags", "origin", SYNC_SOURCE])
await run("git", ["-C", CLONE_DIR, "fetch", "origin", SYNC_SOURCE])
logger.debug(`Attempting to sync: ${SYNC_DEST.join(", ")}`)