Escapes special characters in description
This commit is contained in:
parent
1f1bbea917
commit
3ee2c1eaec
@ -34,4 +34,6 @@ def git_commit_event(PaperEventInstance):
|
|||||||
if isinstance(PaperEventInstance, RenameEvent):
|
if isinstance(PaperEventInstance, RenameEvent):
|
||||||
git.shell("add \*/{}.\*".format(PaperEventInstance.old_citekey))
|
git.shell("add \*/{}.\*".format(PaperEventInstance.old_citekey))
|
||||||
git.shell("add \*/{}.\*".format(PaperEventInstance.citekey))
|
git.shell("add \*/{}.\*".format(PaperEventInstance.citekey))
|
||||||
git.shell('commit -m "{}"'.format(PaperEventInstance.description))
|
cmesg = PaperEventInstance.description
|
||||||
|
cmesg = cmesg.replace('\\','\\\\').replace('"','\\"').replace('$','\\$').replace('`','\\`')
|
||||||
|
git.shell('commit -m "{}"'.format(cmesg))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user