• Show log

    Commit

  • Hash : 10ac298c
    Author : Patrick Steinhardt
    Date : 2019-06-07T11:12:42

    attr_file: fix unescaping of escapes required for fnmatch
    
    When parsing attribute patterns, we will eventually unescape the
    parsed pattern. This is required because we require custom
    escapes for whitespace characters, as normally they are used to
    terminate the current pattern. Thing is, we don't only unescape
    those whitespace characters, but in fact all escaped sequences.
    So for example if the pattern was "\*", we unescape that to "*".
    As this is directly passed to fnmatch(3) later, fnmatch would
    treat it as a simple glob matching all files where it should
    instead only match a file with name "*".
    
    Fix the issue by unescaping spaces, only. Add a bunch of tests to
    exercise escape parsing.
    

  • README.md

  • Writing Clar tests for libgit2

    For information on the Clar testing framework and a detailed introduction please visit:

    https://github.com/vmg/clar

    • Write your modules and tests. Use good, meaningful names.

    • Make sure you actually build the tests by setting:

        cmake -DBUILD_CLAR=ON build/
    • Test:

        ./build/libgit2_clar
    • Make sure everything is fine.

    • Send your pull request. That’s it.