From 92a0fc27155e9b19476b79e2c2610cbe92fe3b79 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Tue, 15 Apr 2025 00:08:48 +0200 Subject: [PATCH] Escape description --- aider_gitea/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider_gitea/__init__.py b/aider_gitea/__init__.py index cf051b4..9117616 100644 --- a/aider_gitea/__init__.py +++ b/aider_gitea/__init__.py @@ -220,6 +220,8 @@ def push_changes( for message in commit_messages.split('\n'): description += f'- {message}\n' + description = description.replace('"', '') + cmd = [ 'git', 'push', @@ -230,7 +232,7 @@ def push_changes( '-o', f'title={issue_title}', '-o', - f'description={description}', + f'description="{description}"', ] run_cmd(cmd, cwd) return True