"Remove quotes from commit messages"

This commit is contained in:
SeanOMik 2023-02-22 20:05:00 -05:00
parent e8c2e9af87
commit 9671989df3
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,8 @@ def get_git_author(repo: Repo):
## Commit changes ## Commit changes
def commit_changes(repo: Repo, message: str, author: Actor): def commit_changes(repo: Repo, message: str, author: Actor):
message = message.strip('"')
res = repo.git.commit('-S', '-m', f'"{message}"', author=f'"{author.name} <{author.email}>"') res = repo.git.commit('-S', '-m', f'"{message}"', author=f'"{author.name} <{author.email}>"')
print(res) print(res)
print("Committed changes!") print("Committed changes!")