mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-18 23:10:14 +01:00
git: escape question mark character
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user