From 93947b090a54b3436c5bce961b25452ce3f94d17 Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Sat, 30 Jul 2022 18:13:43 -0400 Subject: [PATCH] [F] Escape quotation marks --- accept-upstream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accept-upstream.py b/accept-upstream.py index bc239afd..10355d81 100644 --- a/accept-upstream.py +++ b/accept-upstream.py @@ -49,8 +49,9 @@ if __name__ == '__main__': # Merge head branch print() print('Merging fetch_head...') + title = info["title"].replace('"', '\\"') os.system(f'git merge FETCH_HEAD --no-ff --no-edit ' - f'-m "[PR] {upstream}#{pr} from {user} - {info["title"]}" ' + f'-m "[PR] {upstream}#{pr} from {user} - {title}" ' f'-m "Upstream PR: https://github.com/{upstream}/pull/{pr} \n' f'Thanks to @{user}\n\n' f'Co-authored-by: {author["name"]} <{author["email"]}>"')