We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0c592f commit 1a1ff20Copy full SHA for 1a1ff20
src/policy.rs
@@ -123,8 +123,11 @@ impl<'s> ConfigEngine<'s> {
123
let mut config = crate::config::Config::default();
124
125
if !self.isolated {
126
- if let Some(derived) = crate::config::Config::from_dir(cwd)? {
127
- config.update(&derived);
+ for ancestor in cwd.ancestors() {
+ if let Some(derived) = crate::config::Config::from_dir(ancestor)? {
128
+ config.update(&derived);
129
+ break;
130
+ }
131
}
132
133
if let Some(overrides) = self.overrides.as_ref() {
0 commit comments