mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 02:26:14 +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();
|
let mut files_with_content = HashMap::new();
|
||||||
for file_path in files {
|
for file_path in files {
|
||||||
if let Some(paths) = paths.as_ref() {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -346,7 +346,7 @@ impl<'reader> SessionReader<'reader> {
|
|||||||
let mut result = HashMap::new();
|
let mut result = HashMap::new();
|
||||||
for file_path in files {
|
for file_path in files {
|
||||||
if let Some(paths) = paths.as_ref() {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user