Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/git_ops/git2_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,9 @@ impl GitOperations for Git2Operations {
})?;
let patterns = content
.lines()
.map(|line| line.trim().to_string())
.map(|line| line.trim())
.filter(|line| !line.is_empty() && !line.starts_with('#'))
.map(|line| line.to_string())
.collect();
Ok(patterns)
}
Expand Down
1 change: 0 additions & 1 deletion src/git_ops/simple_gix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,3 @@ pub fn fetch_repo(repo: gix::Repository, remote: Option<String>, shallow: bool)
}
})
}

3 changes: 2 additions & 1 deletion tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,8 @@ active = true
.output()
.expect("Failed to run git");

let is_shallow = String::from_utf8_lossy(&output.stdout).trim();
let output_str = String::from_utf8_lossy(&output.stdout);
let is_shallow = output_str.trim();
assert_eq!(
is_shallow, "true",
"Repository at lib/shallow should be shallow"
Expand Down
Loading