summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-19 06:54:01 -0500
committerCraig Jennings <c@cjennings.net>2026-04-19 06:54:01 -0500
commite0a8f6ae83533ef67580b5cc3218126c557c1c56 (patch)
treeb78b0c36a0f6bb9155fd4747c4a02c60c52f4fbf /modules
parent5fbd8f2e4d8facb6e96bd908f52d26468c233c51 (diff)
downloaddotemacs-e0a8f6ae83533ef67580b5cc3218126c557c1c56.tar.gz
dotemacs-e0a8f6ae83533ef67580b5cc3218126c557c1c56.zip
fix(reconcile): restore repo iteration under projects-dir and code-dir
The outer dolist in cj/check-for-open-work guarded its body with (boundp 'base-dir), which always returns nil under lexical-binding because base-dir is a lexical loop variable. Every repo under projects-dir and code-dir was silently skipped; only org-dir and user-emacs-directory (both top-level defvars) still got reconciled. Remove the bogus boundp check. Add regression tests covering the entry point itself — the existing suite only exercised the helpers.
Diffstat (limited to 'modules')
-rw-r--r--modules/reconcile-open-repos.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/reconcile-open-repos.el b/modules/reconcile-open-repos.el
index a7236754..87c16a31 100644
--- a/modules/reconcile-open-repos.el
+++ b/modules/reconcile-open-repos.el
@@ -102,7 +102,7 @@ Returns a list of directory paths that contain a .git subdirectory."
;; these are constants defined in init.el
;; recursively find and check all git repos under these directories
(dolist (base-dir (list projects-dir code-dir))
- (when (and (boundp 'base-dir) base-dir (file-directory-p base-dir))
+ (when (and base-dir (file-directory-p base-dir))
(dolist (repo (cj/find-git-repos base-dir))
(cj/reconcile-git-directory repo))))