mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-19 16:17:37 +03:00
Ensure ignored/submodule files and dirs are ignored
This commit is contained in:
parent
fbbd2a1d1c
commit
05a814146e
@ -131,7 +131,7 @@ impl RepositoryExt for git2::Repository {
|
||||
#[instrument(level = tracing::Level::DEBUG, skip(self), err(Debug))]
|
||||
fn get_wd_tree(&self) -> Result<Tree> {
|
||||
let mut index = self.index()?;
|
||||
index.add_all(["*"], git2::IndexAddOption::DEFAULT, None)?;
|
||||
index.add_all(["*"], git2::IndexAddOption::CHECK_PATHSPEC, None)?;
|
||||
let oid = index.write_tree()?;
|
||||
self.find_tree(oid).map(Into::into).map_err(Into::into)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user