diff --git a/Support/lib/git.rb b/Support/lib/git.rb index a0f5dcc..3758da3 100644 --- a/Support/lib/git.rb +++ b/Support/lib/git.rb @@ -106,7 +106,8 @@ def dir_part(file_or_dir) end def make_local_path(fullpath) - fullpath = fullpath.gsub(/#{path}\/{0,1}/, "") + sanitized_path = Regexp.escape(path) + fullpath = fullpath.gsub(/#{sanitized_path}\/{0,1}/, "") fullpath = "." if fullpath == "" fullpath end