2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 04:57:03 +00:00

Add commit msg when on a devserver

This commit is contained in:
2024-12-29 15:49:07 +00:00
parent 6d2484376a
commit ace2325773
4 changed files with 16 additions and 12 deletions

View File

@@ -2,7 +2,6 @@ import datetime
import difflib
import os
import re
import socket
from collections import namedtuple
from pathlib import Path
@@ -229,11 +228,7 @@ class SvxForm(forms.Form):
fout.write("\n")
fout.close()
if socket.gethostname() == "expo":
comment = f"Online survex edit: {self.data['filename']}.svx"
else:
comment = f"Online survex edit: {self.data['filename']}.svx on dev machine '{socket.gethostname()}' "
print(f"Committing file which has been saved {editor=}")
comment = f"Online survex edit: {self.data['filename']}.svx"
add_commit(fname, comment, editor)
msg = f"SAVED and committed to git (if there were differences)\nEdited by:{editor}"