We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a6c8c commit a89a667Copy full SHA for a89a667
git-repository/src/worktree.rs
@@ -73,13 +73,10 @@ impl<'repo> crate::Worktree<'repo> {
73
overrides.unwrap_or_default(),
74
git_attributes::MatchGroup::<git_attributes::Ignore>::from_git_dir(
75
repo.git_dir(),
76
- repo.config
77
- .excludes_file
78
- .as_ref()
79
- .map(|p| Ok(Some(p.to_owned())))
80
- .or_else(|| repo.config.xdg_config_path("ignore").into())
81
- .transpose()?
82
- .flatten(),
+ match repo.config.excludes_file.as_ref() {
+ Some(user_path) => Some(user_path.to_owned()),
+ None => repo.config.xdg_config_path("ignore")?,
+ },
83
&mut buf,
84
)?,
85
None,
0 commit comments