2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-27 18:51:48 +00:00

Bug fixes

This commit is contained in:
2024-12-29 23:37:20 +00:00
parent 1ddd4da27b
commit f73f1b50fe
3 changed files with 17 additions and 60 deletions

View File

@@ -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)