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!