From 151d49d01dfe441b59d6dab30033b02d5b13523c Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 19 Apr 2026 06:54:01 -0500 Subject: fix(reconcile): restore repo iteration under projects-dir and code-dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- modules/reconcile-open-repos.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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)))) -- cgit v1.2.3