Skip to content

Commit dc323d2

Browse files
committed
chore: small niceties for commit message and not trying a redundant branch creation
1 parent d746b9a commit dc323d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/update-demo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ def update_demo(
5252
f"'{current_commit}'."
5353
)
5454

55-
git("checkout", "-b", current_branch)
55+
if current_branch != develop_branch:
56+
git("checkout", "-b", current_branch)
57+
5658
uv("python", "pin", min_python_version)
5759
uv("python", "install", min_python_version)
5860
cruft.update(
@@ -67,7 +69,7 @@ def update_demo(
6769
)
6870
uv("lock")
6971
git("add", ".")
70-
git("commit", "-m", "chore: update demo to the latest cookiecutter-robust-python", "--no-verify")
72+
git("commit", "-m", f"chore: {last_update_commit} -> {current_commit}", "--no-verify")
7173
git("push")
7274

7375
except Exception as error:

0 commit comments

Comments
 (0)