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