From a9201f8237eca489e3934a4b9d32328d3b3e1b6e Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Mon, 30 Sep 2019 11:21:39 -0500 Subject: [PATCH] git: add a note referencing gitignore pattern --- dvc/scm/git/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dvc/scm/git/__init__.py b/dvc/scm/git/__init__.py index 4678634b2..02382cad4 100644 --- a/dvc/scm/git/__init__.py +++ b/dvc/scm/git/__init__.py @@ -165,6 +165,7 @@ class Git(Base): @staticmethod def _escape(entry): + # Reference: https://git-scm.com/docs/gitignore#_pattern_format meta_characters = r"[]!*#" return "".join("\\" + x if x in meta_characters else x for x in entry)