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:
@@ -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(", ")}`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user