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)))