Skip to content

Commit

Permalink
Always honor git ignore files (#13119)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace authored Mar 6, 2024
1 parent 722f436 commit e2dcbad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oxide/crates/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ fn resolve_files(root: &Path) -> (Vec<PathBuf>, Vec<PathBuf>) {
pub fn resolve_allowed_paths(root: &Path) -> impl Iterator<Item = DirEntry> {
WalkBuilder::new(root)
.hidden(false)
.require_git(false)
.filter_entry(|entry| match entry.file_type() {
Some(file_type) if file_type.is_dir() => match entry.file_name().to_str() {
Some(dir) => !IGNORED_CONTENT_DIRS.contains(&dir),
Expand Down

0 comments on commit e2dcbad

Please sign in to comment.