summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-19 01:12:49 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-19 01:12:49 +0100
commit18dbb847e360a45f5ae7fb6bdaf225ddb49e1610 (patch)
tree6fbdc0a2b92e7005d68c6084007c3599a1dd63da /core/views/expo.py
parent84693b6524e98e8201dbb90f7dd9c33e580cfa00 (diff)
downloadtroggle-18dbb847e360a45f5ae7fb6bdaf225ddb49e1610.tar.gz
troggle-18dbb847e360a45f5ae7fb6bdaf225ddb49e1610.tar.bz2
troggle-18dbb847e360a45f5ae7fb6bdaf225ddb49e1610.zip
test
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 57f6eb8..8d67f6f 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -341,7 +341,7 @@ def editexpopage(request, path):
return render(request,'errors/generic.html', {'message': message})
try:
- cp_add = subprocess.run([git, "add", filename], cwd=cwd, capture_output=True, text=True)
+ cp_add = subprocess.run([git, "add", filename.encode(sysdefaultencoding)], cwd=cwd, capture_output=True, text=True)
if cp_add.returncode != 0:
msgdata = 'Ask a nerd to fix this.\n\n' + cp_add.stderr + '\n\n' + cp_add.stdout + '\n\nreturn code: ' + str(cp_add.returncode)
message = f'CANNOT git on server for this file {filename}. Edits saved but not added to git.\n\n' + msgdata