{"action":"created","issue":{"url":"https://api.github.com/repos/magit/magit/issues/2154","labels_url":"https://api.github.com/repos/magit/magit/issues/2154/labels{/name}","comments_url":"https://api.github.com/repos/magit/magit/issues/2154/comments","events_url":"https://api.github.com/repos/magit/magit/issues/2154/events","html_url":"https://github.com/magit/magit/issues/2154","id":99705255,"number":2154,"title":"`magit-status' doesn't accept alternate directory names","user":{"login":"seh","id":175841,"avatar_url":"https://avatars.githubusercontent.com/u/175841?v=3","gravatar_id":"","url":"https://api.github.com/users/seh","html_url":"https://github.com/seh","followers_url":"https://api.github.com/users/seh/followers","following_url":"https://api.github.com/users/seh/following{/other_user}","gists_url":"https://api.github.com/users/seh/gists{/gist_id}","starred_url":"https://api.github.com/users/seh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seh/subscriptions","organizations_url":"https://api.github.com/users/seh/orgs","repos_url":"https://api.github.com/users/seh/repos","events_url":"https://api.github.com/users/seh/events{/privacy}","received_events_url":"https://api.github.com/users/seh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-07T18:41:08Z","updated_at":"2015-08-07T19:53:57Z","closed_at":"2015-08-07T19:42:16Z","body":"If one calls `(magit-status \"~/repo\")` but `(expand-file-name \"~/repo\")` yields something different, such as \"/Users/me/repo\"), then Magit refuses to open a status buffer for that repository, and instead falls back to the default directory (`default-directory`).\r\n\r\nThis is due to `magit-status` demanding exact equivalence between the supplied path and the expanded path:\r\n```lisp\r\n(if (and toplevel (string-equal directory toplevel))\r\n    (magit-status-internal directory)\r\n```\r\nWhat's the reason for being so strict here? My normal workflow is to type <kbd>C-u</kbd> <kbd>M-x</kbd> <kbd>magit-status</kbd> <kbd>RET</kbd> <kbd>~/some/path</kbd> <kbd>RET</kbd>, but Magit just ignores the supplied path because it's not already in the canonical form."},"comment":{"url":"https://api.github.com/repos/magit/magit/issues/comments/128813303","html_url":"https://github.com/magit/magit/issues/2154#issuecomment-128813303","issue_url":"https://api.github.com/repos/magit/magit/issues/2154","id":128813303,"user":{"login":"tarsius","id":25046,"avatar_url":"https://avatars.githubusercontent.com/u/25046?v=3","gravatar_id":"","url":"https://api.github.com/users/tarsius","html_url":"https://github.com/tarsius","followers_url":"https://api.github.com/users/tarsius/followers","following_url":"https://api.github.com/users/tarsius/following{/other_user}","gists_url":"https://api.github.com/users/tarsius/gists{/gist_id}","starred_url":"https://api.github.com/users/tarsius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarsius/subscriptions","organizations_url":"https://api.github.com/users/tarsius/orgs","repos_url":"https://api.github.com/users/tarsius/repos","events_url":"https://api.github.com/users/tarsius/events{/privacy}","received_events_url":"https://api.github.com/users/tarsius/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T19:53:57Z","updated_at":"2015-08-07T19:53:57Z","body":"Usually that's not required and when it is required, then there unfortunately is no way to do it. That's just how `package.el` is. The only thing you can do is to uninstall, restart, and only then reinstall. By the way, when you updated from <2 to >2 did you follow the update instructions and did the mentioned uninstall, restart, reinstall dance?"}}