diff options
Diffstat (limited to 'core/models/caves.py')
-rw-r--r-- | core/models/caves.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/models/caves.py b/core/models/caves.py index 6a07748..0a4cc3e 100644 --- a/core/models/caves.py +++ b/core/models/caves.py @@ -42,7 +42,8 @@ def writetrogglefile(filepath, filecontent): '''Set permissions to rw-rw-r-- and commit the new saved file to git Callers to cave.writeDataFile() or entrance.writeDataFile() should handle the exception PermissionsError explicitly ''' - # see also core/views/expo.py editexpopage() + # GIT see also core/views/expo.py editexpopage() + # GIT see also core/views/uploads.py dwgupload() filepath = Path(filepath) cwd = filepath.parent filename = filepath.name @@ -56,7 +57,7 @@ def writetrogglefile(filepath, filecontent): #os.chmod(filepath, 0o664) # set file permissions to rw-rw-r-- # should replace .call with .run and capture_output=True call([git, "add", filename], cwd=cwd) - call([git, "commit", "-m", 'Troggle online cave or entrance edit'], cwd=cwd) + call([git, "commit", "-m", f'Troggle online: cave or entrance edit -{filename}'], cwd=cwd) class Area(TroggleModel): |