Skip to content

Commit 1b56f02

Browse files
committed
fix: remove old code from update-demo that is no longer compatible
1 parent dad65b3 commit 1b56f02

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

scripts/update-demo.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ def update_demo(
6262

6363
typer.secho(f"Updating demo project at {demo_path=}.", fg="yellow")
6464
with work_in(demo_path):
65-
if current_branch != "develop":
66-
git("checkout", "-b", current_branch)
67-
6865
uv("python", "pin", min_python_version)
6966
uv("python", "install", min_python_version)
7067
cruft.update(
@@ -114,12 +111,6 @@ def __has_existing_remote_demo_branch(demo_path: Path, branch: str) -> bool:
114111
return remote_result is not None and branch in remote_result.stdout
115112

116113

117-
def _set_demo_to_clean_branch(demo_path: Path, branch: str) -> None:
118-
"""Checks out the demo branch and validates it is up to date."""
119-
with work_in(demo_path):
120-
git("checkout", "develop")
121-
122-
123114
def _validate_template_main_not_checked_out(branch: str) -> None:
124115
"""Validates that the cookiecutter isn't currently on main.
125116

0 commit comments

Comments
 (0)