git: escape question mark character

This commit is contained in:
Mr. Outis
2019-09-30 11:27:53 -05:00
parent a9201f8237
commit 80cb1c919a
+1 -1
View File
@@ -166,7 +166,7 @@ class Git(Base):
@staticmethod
def _escape(entry):
# Reference: https://git-scm.com/docs/gitignore#_pattern_format
meta_characters = r"[]!*#"
meta_characters = r"[]!*#?"
return "".join("\\" + x if x in meta_characters else x for x in entry)