From e9bed9b1e2638d0f5148e339f364e73dd1d0d9c4 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Thu, 19 Feb 2009 13:44:41 +0200 Subject: [PATCH] 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. --- magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magit.el b/magit.el index c7d5de14..1f03ae4e 100644 --- a/magit.el +++ b/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