We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3758046 commit 215cefbCopy full SHA for 215cefb
scripts/update-demo.py
@@ -68,6 +68,12 @@ def update_demo(
68
fg=typer.colors.YELLOW
69
)
70
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
+
77
typer.secho(f"Updating demo project at {demo_path=}.", fg="yellow")
78
with work_in(demo_path):
79
if get_current_branch() != desired_branch_name:
0 commit comments