From 659480b4e3ddc5692e4db52bd91818ac98e42f9c Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Tue, 12 Aug 2008 13:52:16 +0300 Subject: [PATCH] * magit.el (magit-read-top-dir): Also ask when top-dir can't be found. --- magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magit.el b/magit.el index f6051635..fb1522bb 100644 --- a/magit.el +++ b/magit.el @@ -98,7 +98,7 @@ (defun magit-read-top-dir (prefix) (let ((dir (magit-get-top-dir default-directory))) - (if prefix + (if (or (not dir) prefix) (magit-get-top-dir (read-directory-name "Git repository: " dir)) dir)))