universal-ctags / citre

A superior code reading & auto-completion tool with pluggable backends.
GNU General Public License v3.0
326 stars 26 forks source link

`project-current` returns `(vc Git "~/.emacs.d/")` for a git repo #113

Closed condy0919 closed 2 years ago

condy0919 commented 2 years ago
(defun citre--project-root ()
  "Full path of project root of current buffer.
This uses `project-current' internally."
  (when-let ((project (project-current nil)))
    (expand-file-name (cdr project))))

So expand-file-name throws an exception when passing '(Git "~/.emacs.d") to it.

https://github.com/emacs-mirror/emacs/commit/86969f9658e278ebacb3d625d0309046ff1f2b54 caused it.

AmaiKinono commented 2 years ago

Thanks for the report. My PC is currently broken (sad...) so please wait a few days before I fix this.