aboutsummaryrefslogtreecommitdiff
path: root/helix-loader/src/lib.rs
diff options
context:
space:
mode:
authorPascal Kuthe2022-12-11 10:20:34 +0000
committerGitHub2022-12-11 10:20:34 +0000
commit70d78123b94d93c801171ac3dd29e2a493feee20 (patch)
treef57fc633bca23b9d34f59b2d8e9ff0fbf4e70d57 /helix-loader/src/lib.rs
parent0e8ea13696206aa8ad289d539a5df62f34a73dec (diff)
properly handle detachted git worktrees (#5097)
Diffstat (limited to 'helix-loader/src/lib.rs')
-rw-r--r--helix-loader/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-loader/src/lib.rs b/helix-loader/src/lib.rs
index 29a9f2e7..80d44a82 100644
--- a/helix-loader/src/lib.rs
+++ b/helix-loader/src/lib.rs
@@ -97,7 +97,7 @@ pub fn find_local_config_dirs() -> Vec<PathBuf> {
let mut directories = Vec::new();
for ancestor in current_dir.ancestors() {
- if ancestor.join(".git").is_dir() {
+ if ancestor.join(".git").exists() {
directories.push(ancestor.to_path_buf());
// Don't go higher than repo if we're in one
break;