Skip to content

Commit

Permalink
Added .git to ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Apr 30, 2024
1 parent 8ff37dd commit 92314e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion crates/file_tree_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ pub type FileTree = FileSystemTree<OsString, String>;
pub fn load_directory_into_memory(path: &Path) -> Result<FileTree, FileTreeError> {
let mut file_tree: FileTree = dir! {};

for result in WalkBuilder::new(path).hidden(false).build() {
let mut builder = WalkBuilder::new(path);
builder.add_ignore(".git/");

for result in builder.hidden(false).build() {
let dir_entry = result?
.path()
.iter()
Expand Down
4 changes: 2 additions & 2 deletions crates/scaffold_remote_zome/src/bin/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use anyhow::{anyhow, Result};
use anyhow::Result;
use build_fs_tree::{Build, MergeableFileSystemTree};
use clap::Parser;
use colored::Colorize;
use scaffold_remote_zome::scaffold_remote_zome;
use std::{
ffi::OsString,
path::{Path, PathBuf},
path::PathBuf,
process::{Command, ExitCode},
};
use sync_npm_git_dependencies_with_nix::synchronize_npm_git_dependencies_with_nix;
Expand Down

0 comments on commit 92314e3

Please sign in to comment.