mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 01:51:57 +03:00
strict filter path
This commit is contained in:
parent
72310d6a84
commit
224784a9f2
@ -293,7 +293,7 @@ impl<'reader> SessionReader<'reader> {
|
||||
let mut files_with_content = HashMap::new();
|
||||
for file_path in files {
|
||||
if let Some(paths) = paths.as_ref() {
|
||||
if !paths.iter().any(|path| file_path.starts_with(path)) {
|
||||
if !paths.iter().any(|path| file_path.eq(path)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -346,7 +346,7 @@ impl<'reader> SessionReader<'reader> {
|
||||
let mut result = HashMap::new();
|
||||
for file_path in files {
|
||||
if let Some(paths) = paths.as_ref() {
|
||||
if !paths.iter().any(|path| file_path.starts_with(path)) {
|
||||
if !paths.iter().any(|path| file_path.eq(path)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user