summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/utils.py b/core/utils.py
index c7f71fa..b2140ed 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -96,7 +96,7 @@ nothing to commit, working tree clean
if cp_commit.returncode == 1 and cp_commit.stdout == devok_text:
pass
else:
- if cp_commit.returncode != 0 and cp_commit.stdout != 'nothing to commit, working tree clean':
+ if cp_commit.returncode != 0 and not cp_commit.stdout.strip().endswith('nothing to commit, working tree clean'):
msgdata = f'--Ask a nerd to fix this problem in only_commit().\n--{cp_commit.stderr}\n--"{cp_commit.stdout}"\n--return code:{str(cp_commit.returncode)}'
print(msgdata)
raise WriteAndCommitError(f'Error code with git on server for this file {filename}. Edits saved, added to git, but NOT committed.\n\n' + msgdata)