mirror of
https://github.com/MarlinFirmware/Configurations.git
synced 2025-06-26 01:15:14 -06:00
✅ Cleaner mfconfig commit messages
This commit is contained in:
parent
cfae353aee
commit
d21ee0f750
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ def git(etc):
|
|||
def branch(): return git(["rev-parse", "--abbrev-ref", "HEAD"])
|
||||
|
||||
# git add . ; git commit -m ...
|
||||
def commit(msg, who="."): git(["add", who]) ; return git(["commit", "-m", f'"{msg}"'])
|
||||
def commit(msg, who="."): git(["add", who]) ; return git(["commit", "-m", msg])
|
||||
|
||||
# git checkout ...
|
||||
def checkout(etc): return git(["checkout"] + ([etc] if isinstance(etc, str) else etc))
|
||||
|
@ -181,7 +181,7 @@ if ACTION == "init":
|
|||
# Create a fresh 'WORK' as a copy of 'init-repo' (README, LICENSE, etc.)
|
||||
if not CI: gitbd("WORK")
|
||||
REMOTE = "origin" if CI else "upstream"
|
||||
checkout([f"{REMOTE}/init-repo", "-b", "WORK"])
|
||||
checkout(["--no-track", f"{REMOTE}/init-repo", "-b", "WORK"])
|
||||
|
||||
# Copy default configurations into the repo
|
||||
info("Create configs in default state...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue