summaryrefslogtreecommitdiffstats
path: root/core/utils.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-12-29 23:37:20 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2024-12-29 23:37:20 +0000
commitf73f1b50fe73631ce147ea59bd62d4eaac10cd69 (patch)
treeeebb7b02d10cf5a5e9ece139cd1a13f9785a6cd5 /core/utils.py
parent1ddd4da27bf1aa1594cdfc0477e016932c735026 (diff)
downloadtroggle-f73f1b50fe73631ce147ea59bd62d4eaac10cd69.tar.gz
troggle-f73f1b50fe73631ce147ea59bd62d4eaac10cd69.tar.bz2
troggle-f73f1b50fe73631ce147ea59bd62d4eaac10cd69.zip
Bug fixes
Diffstat (limited to 'core/utils.py')
-rw-r--r--core/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/utils.py b/core/utils.py
index 154c468..3dbbd9f 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -221,7 +221,7 @@ def git_string(author_string):
return author_string
else:
editor = author_string.replace("@","_at_")
- editor = re.sub('[^0-9a-zA-Z_\.]+', '_', editor)
+ editor = re.sub('[^0-9a-zA-Z_]+', '_', editor)
if editor.startswith("_"):
editor = "X" + editor
editor += f" <{editor}@potatohut.expo>"
@@ -265,9 +265,9 @@ def git_commit(cwd, message, editor, commands=[]):
print(f"git commit in {cwd}")
if socket.gethostname() != EXPOSERVER:
- message += f" on dev machine '{socket.gethostname()}'"
+ message += f" - on dev machine '{socket.gethostname()}'"
elif settings.DEVSERVER:
- message += " on a dev machine using 'runserver'"
+ message += " - on a dev machine using 'runserver'"
print(f"..{message=}\n..{editor=}")
cmd_commit = [git, "commit", "-m", message, "--author", f"{editor}"]
commands.append(cmd_commit)