(defun tern-project-dir ()
(or (and (equal tern-last-file-name (buffer-file-name)) tern-project-dir)
(and (not (buffer-file-name)) (setf tern-project-dir ""))
- (setf tern-project-dir (locate-dominating-file default-directory ".git")))
+ (setf tern-project-dir (expand-file-name (locate-dominating-file default-directory ".git"))))
;; Track the file name to detect if it changed, which means the project
;; directory needs to be found again.
(setf tern-last-file-name (buffer-file-name))