magit/magit — pull request #1202 by yasuyk (2014-02-13 20:03:05+00:00)
Title: Suppress error when visiting file in other than git repo

`magit-get-top-dir` say `Wrong type argument: stringp, nil` when visiting file in other than git repository. This commit fix this issue.