Magit fails to detect the git repository

23 views
Skip to first unread message

Daniel Hawthorne

unread,
Sep 22, 2014, 5:00:25 PM9/22/14
to ma...@googlegroups.com
Magit version: magit-20140908.1424 magit-20140908.1424
Git version: 2.1.0
Emacs 24.3.1 on OSX.

When I invoke M-x magit-status from the top level of the git repository, I get the a prompt in the minibuffer like Git repository: /path/to/top-level/dir. When I press return, it further prompts There is no Git repository in /path/to/top-level/dir/. Create one? (y or n).

git rev-parse --show-toplevel works from shell, but
(magit-git-string "rev-parse" "--show-toplevel") returns nil.

There have been previous questions with this behavior, but none of the fixed provided help.

Thanks for your time!


Jonas Bernoulli

unread,
Sep 29, 2014, 6:45:59 PM9/29/14
to Daniel Hawthorne, ma...@googlegroups.com
Daniel Hawthorne <free...@gmail.com> writes:

> Git version: 2.1.0
>
> git rev-parse --show-toplevel works from shell, but
> (magit-git-string "rev-parse" "--show-toplevel") returns nil.

And what does (magit-git-string "--version") return?

Daniel Hawthorne

unread,
Sep 30, 2014, 6:31:13 PM9/30/14
to ma...@googlegroups.com
Thanks for responding!

(magit-git-string "--version”) returns nil
C-h v magit-version returns 20140908.1424
Reply all
Reply to author
Forward
0 new messages