Fix vc-git.el to not cd into a non-existent directory. --- contrib/emacs/vc-git.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) base 54851157acf707eb953eada2a84830897dde5c1d last c2af9380cd8ec0170b9b251c0ee8a5efa63bac87 diff --git a/contrib/emacs/vc-git.el b/contrib/emacs/vc-git.el index 8b6361922fd6e6a2fcd9acb20fd54f5b645b36f0..b3c8040dd766c9b15e1d0a9247b6343fdf0a8caf 100644 --- a/contrib/emacs/vc-git.el +++ b/contrib/emacs/vc-git.el @@ -58,7 +58,7 @@ (with-temp-buffer (let* ((dir (file-name-directory file)) (name (file-relative-name file dir))) - (when dir (cd dir)) + (when (file-exists-p dir) (cd dir)) (and (ignore-errors (eq 0 (call-process "git" nil '(t nil) nil "ls-files" "-c" "-z" "--" name))) (let ((str (buffer-string))) (and (> (length str) (length name)) -- 1.4.4.1 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html