File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,12 @@ impl Options<'_> {
87
87
///
88
88
/// Note that `GIT_DISCOVERY_ACROSS_FILESYSTEM` for `cross_fs` is **not** read,
89
89
/// as it requires parsing of `git-config` style boolean values.
90
- ///
91
- /// In addition, this function disables `match_ceiling_dir_or_error` to allow
92
- /// discovery if an outside environment variable sets non-matching ceiling directories.
93
90
// TODO: test
94
91
pub fn apply_environment ( mut self ) -> Self {
95
92
let name = "GIT_CEILING_DIRECTORIES" ;
96
93
if let Some ( ceiling_dirs) = env:: var_os ( name) {
97
94
self . ceiling_dirs = parse_ceiling_dirs ( & ceiling_dirs) ;
98
95
}
99
- self . match_ceiling_dir_or_error = false ;
100
96
self
101
97
}
102
98
}
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ impl ThreadSafeRepository {
63
63
///
64
64
/// Finally, use the `trust_map` to determine which of our own repository options to use
65
65
/// based on the trust level of the effective repository directory.
66
+ ///
67
+ /// ### Note
68
+ ///
69
+ /// Consider to set [`match_ceiling_dir_or_error = false`](gix_discover::upwards::Options::match_ceiling_dir_or_error)
70
+ /// to allow discovery if an outside environment variable sets non-matching ceiling directories for greater
71
+ /// compatibility with Git.
66
72
#[ momo]
67
73
pub fn discover_with_environment_overrides_opts (
68
74
directory : impl AsRef < Path > ,
You can’t perform that action at this time.
0 commit comments