+2008-02-16 Eli Zaretskii <eliz@gnu.org>
+
+ * vc-hooks.el (vc-find-root): Don't loop forever on non-existent root.
+
2008-02-14 Stefan Monnier <monnier@pastel.home>
* textmodes/sgml-mode.el (sgml-mode): Fix comment syntax.
If WITNESS if not found, return nil, otherwise return the root."
;; Represent /home/luser/foo as ~/foo so that we don't try to look for
;; witnesses in /home or in /.
- (while (not (file-directory-p file))
+ (while (and (not (file-directory-p file)) (file-exists-p file))
(setq file (file-name-directory (directory-file-name file))))
(setq file (abbreviate-file-name file))
(let ((root nil)