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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user