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:34:12 -07:00
parent a3a9d024ba
commit 8fff0b0ff8

View file

@ -100,7 +100,6 @@ impl GitRepository for LibGitRepository {
let mut options = git2::StatusOptions::new(); let mut options = git2::StatusOptions::new();
options.pathspec(path_prefix); options.pathspec(path_prefix);
options.disable_pathspec_match(true);
options.show(StatusShow::Index); options.show(StatusShow::Index);
if let Some(statuses) = self.statuses(Some(&mut options)).log_err() { if let Some(statuses) = self.statuses(Some(&mut options)).log_err() {