• Show log

    Commit

  • Hash : 9465bedb
    Author : Edward Thomson
    Date : 2015-05-12T16:02:18

    attr: don't mangle file path during attr matching
    
    When determining whether some file matches an attr pattern, do
    not try to truncate the path to pass to fnmatch.  When there is
    no containing directory for an item (eg, from a .gitignore in the
    root) this will cause us to truncate our path, which means that
    we cannot do meaningful comparisons on it and we may have false
    positives when trying to determine whether a given file is actually
    a file or a folder (as we have lost the path's base information.)
    
    This mangling was to allow fnmatch to compare a directory on disk to
    the name of a directory, but it is unnecessary as our fnmatch accepts
    FNM_LEADING_DIR.