Force fetch tags from llvm-bazel (#3720)
llvm-bazel does not guarantee that flag refs will be stable, so we need
to use `--force` to update them.
diff --git a/scripts/git/update_to_llvm_syncpoint.py b/scripts/git/update_to_llvm_syncpoint.py
index 657ce6d..d543b48 100755
--- a/scripts/git/update_to_llvm_syncpoint.py
+++ b/scripts/git/update_to_llvm_syncpoint.py
@@ -157,8 +157,9 @@
def find_new_llvm_bazel_commit(llvm_bazel_path, llvm_commit, llvm_bazel_commit):
- # Explicitly specify tags. We need these.
- utils.execute(["git", "fetch", "--tags"], cwd=llvm_bazel_path)
+ # Explicitly force-fetch tags. Tags in llvm-bazel are not guaranteed to be
+ # stable.
+ utils.execute(["git", "fetch", "--tags", "--force"], cwd=llvm_bazel_path)
if llvm_bazel_commit not in COMMIT_OPTIONS:
return get_commit(llvm_bazel_path, rev=llvm_bazel_commit)