aboutsummaryrefslogtreecommitdiff
path: root/modules/reconcile-open-repos.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/reconcile-open-repos.el')
-rw-r--r--modules/reconcile-open-repos.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/reconcile-open-repos.el b/modules/reconcile-open-repos.el
index dd82ef0f3..79a895bf9 100644
--- a/modules/reconcile-open-repos.el
+++ b/modules/reconcile-open-repos.el
@@ -171,8 +171,11 @@ Prunes generated/heavy directories. Once a repository root is found, do not
descend into it unless INCLUDE-NESTED is non-nil."
(let (repos)
(when (file-directory-p directory)
- (dolist (child (directory-files directory t "^[^.]+$" 'nosort))
+ (dolist (child (directory-files directory t directory-files-no-dot-files-regexp 'nosort))
(when (and (file-directory-p child)
+ ;; Skip hidden dirs (.git, .config) but keep dotted repo
+ ;; names like mcp.el; the old "^[^.]+$" filter dropped both.
+ (not (string-prefix-p "." (file-name-nondirectory child)))
(not (cj/reconcile--pruned-directory-p child)))
(if (file-directory-p (expand-file-name ".git" child))
(progn