Skip to content

Commit cffc54e

Browse files
committed
fix: add two additional fetches that ensure branch actually exists locally so CICD doesn't error on update demo workflow
1 parent fd601f5 commit cffc54e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def require_clean_and_up_to_date_demo_repo(demo_path: Path) -> None:
131131
try:
132132
with work_in(demo_path):
133133
git("fetch")
134+
git("fetch", "origin", f"{DEMO.main_branch}:{DEMO.main_branch}")
135+
git("fetch", "origin", f"{DEMO.develop_branch}:{DEMO.develop_branch}")
134136
git("status", "--porcelain")
135137
validate_is_synced_ancestor(ancestor=DEMO.main_branch, descendent=DEMO.develop_branch)
136138
except Exception as e:

0 commit comments

Comments
 (0)