Skip to content

Commit 7337d00

Browse files
Update tasks.py
Co-authored-by: Copilot <[email protected]>
1 parent 57c5fb0 commit 7337d00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def git_push(c):
4040
print("Aborting: empty commit message.")
4141
return
4242

43-
c.run(f'git commit -S -m "{message}"')
43+
sanitized_message = shlex.quote(message)
44+
c.run(f"git commit -S -m {sanitized_message}")
4445
c.run("git push")
4546
except KeyboardInterrupt:
4647
print("\nAborted by user.")

0 commit comments

Comments
 (0)