Skip to content

Commit

Permalink
git: escape question mark character
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr. Outis committed Sep 30, 2019
1 parent a9201f8 commit 80cb1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/scm/git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _add_entry_to_gitignore(self, entry, gitignore):
@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)

Expand Down

0 comments on commit 80cb1c9

Please sign in to comment.