From 74b314707603ac384d542d32ba810eb0e640b2f5 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 7 Oct 2022 23:47:30 +0300 Subject: [PATCH] fix for running troggle not on master git server --- core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)