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:
parent
47cffef546
commit
e9bed9b1e2
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue