From 80cb1c919a2c627c18728ed4c35bc95a1eb312c7 Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Mon, 30 Sep 2019 11:27:53 -0500 Subject: [PATCH] git: escape question mark character --- dvc/scm/git/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/scm/git/__init__.py b/dvc/scm/git/__init__.py index 02382cad44..11b91e339f 100644 --- a/dvc/scm/git/__init__.py +++ b/dvc/scm/git/__init__.py @@ -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)