Fixlet to make magit-status work again when called from a non-Git dir.

* magit.el (magit-get-top-dir): It's default-directory not
default-dir, stupid.
This commit is contained in:
Marius Vollmer 2009-02-19 13:44:41 +02:00
parent 47cffef546
commit e9bed9b1e2

View file

@ -252,7 +252,7 @@ Many Magit faces inherit from this one by default."
(defun magit-get-top-dir (cwd)
(let ((cwd (expand-file-name cwd)))
(and (file-directory-p cwd)
(let* ((default-dir cwd)
(let* ((default-directory cwd)
(magit-dir
(magit-git-string "rev-parse --git-dir 2>/dev/null")))
(and magit-dir