Skip to content

Commit 8df514f

Browse files
committed
chore: small niceties for commit message and not trying a redundant branch creation
1 parent b199631 commit 8df514f

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
@@ -49,14 +49,16 @@ def update_demo(
4949
f"'{current_commit}'."
5050
)
5151

52-
git("checkout", "-b", current_branch)
52+
if current_branch != develop_branch:
53+
git("checkout", "-b", current_branch)
54+
5355
cruft.update(
5456
project_dir=demo_path,
5557
template_path=REPO_FOLDER,
5658
extra_context={"project_name": demo_name, "add_rust_extension": add_rust_extension},
5759
)
5860
git("add", ".")
59-
git("commit", "-m", "chore: update demo to the latest cookiecutter-robust-python", "--no-verify")
61+
git("commit", "-m", f"chore: {last_update_commit} -> {current_commit}", "--no-verify")
6062
git("push")
6163

6264
except Exception as error:

0 commit comments

Comments
 (0)