Fix pathspec in staged_statuses

Enable non-literal matching so that directory paths match
all files contained within them.
This commit is contained in:
Max Brunsfeld
2023-07-23 21:36:29 -07:00
parent a3a9d024ba
commit 8fff0b0ff8
-1
View File
@@ -100,7 +100,6 @@ impl GitRepository for LibGitRepository {
let mut options = git2::StatusOptions::new();
options.pathspec(path_prefix);
options.disable_pathspec_match(true);
options.show(StatusShow::Index);
if let Some(statuses) = self.statuses(Some(&mut options)).log_err() {