Skip to content

Commit 215cefb

Browse files
committed
Revert "fix: try removing ancestry check to see if it actually matters"
This reverts commit 3758046.
1 parent 3758046 commit 215cefb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/update-demo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ def update_demo(
6868
fg=typer.colors.YELLOW
6969
)
7070

71+
if not is_ancestor(last_update_commit, "HEAD"):
72+
raise ValueError(
73+
f"The last update commit '{last_update_commit}' is not an ancestor of the current commit "
74+
f"'{template_commit}'."
75+
)
76+
7177
typer.secho(f"Updating demo project at {demo_path=}.", fg="yellow")
7278
with work_in(demo_path):
7379
if get_current_branch() != desired_branch_name:

0 commit comments

Comments
 (0)