     return false
 
   isPathExcluded: (fileOrDirectory, filepath) ->
-    return true if @repo?.isIgnored(@repo.relativize(filepath))
     exclusions = @exclusions[fileOrDirectory]
     return false unless exclusions?.length
 

    return false

  isPathGloballyExcluded: (fileOrDirectory, filepath) ->
    return true if @repo?.isIgnored(@repo.relativize(filepath))

    exclusions = @globalExclusions[fileOrDirectory]
    index = exclusions.length
    while index--
      return true if (exclusions[index].match(filepath))
    return false

  sanitizePaths: (options) ->
    return options unless options.inclusions?.length

    return true if @inclusions['directory']?.length && @isPathIncluded('directory', filepath)

    @isPathIncluded('directory', filepath) &&
    !@isPathGloballyExcluded('directory', filepath) &&
    !@isPathExcludedByGit(filepath)

  isPathAccepted: (fileOrDirectory, filepath) ->
    !@isPathExcluded(fileOrDirectory, filepath) &&
