Skip to content

Commit

Permalink
✅ Cleaner mfconfig commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Nov 18, 2024
1 parent cfae353 commit d21ee0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/mfconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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...")
Expand Down

0 comments on commit d21ee0f

Please sign in to comment.