1. 12 Apr, 2018 1 commit
    • attr_file: fix handling of directory patterns with trailing spaces · 251d8771
      When comparing whether a path matches a directory rule, we pass the
      both the path and directory name to `fnmatch` with
      `GIT_ATTR_FNMATCH_DIRECTORY` being set. `fnmatch` expects the pattern to
      contain no trailing directory '/', which is why we try to always strip
      patterns of trailing slashes. We do not handle that case correctly
      though when the pattern itself has trailing spaces, causing the match to
      fail.
      
      Fix the issue by stripping trailing spaces and tabs for a rule previous
      to checking whether the pattern is a directory pattern with a trailing
      '/'. This replaces the whitespace-stripping in our ignore file parsing
      code, which was stripping whitespaces too late. Add a test to catch
      future breakage.
      Patrick Steinhardt committed
  2. 06 Apr, 2018 4 commits
  3. 05 Apr, 2018 2 commits
  4. 03 Apr, 2018 4 commits
  5. 02 Apr, 2018 1 commit
  6. 30 Mar, 2018 1 commit
  7. 29 Mar, 2018 4 commits
  8. 28 Mar, 2018 3 commits
  9. 27 Mar, 2018 12 commits
  10. 26 Mar, 2018 2 commits
  11. 23 Mar, 2018 3 commits
  12. 20 Mar, 2018 3 commits