arthur-tf-sync-repos: sync script with production
Signed-off-by: Arthur She <arthur.she@linaro.org>
Change-Id: I5ae01627efe0a0fdbccd7bbe5e588fcb1416d174
diff --git a/ci/tf-sync-repos.sh b/ci/tf-sync-repos.sh
index bbf7d41..0450660 100755
--- a/ci/tf-sync-repos.sh
+++ b/ci/tf-sync-repos.sh
@@ -86,5 +86,5 @@
echo -e "\nFetching Gerrit ${GERRIT_PROJECT}:${gerrit_branch}\n"
git -C "${_workdir}" fetch --tags "${gerrit_repo}" "${gerrit_branch}"
echo -e "\nSyncing up to GitHub ${gh_repo}:${gh_branch}\n"
- git -C "${_workdir}" push --tags "${gh_remote}" FETCH_HEAD:refs/heads/"${gh_branch}"
+ git -C "${_workdir}" push --force --tags "${gh_remote}" FETCH_HEAD:refs/heads/"${gh_branch}"
done