{"action":"created","issue":{"url":"https://api.github.com/repos/vermiculus/magithub/issues/48","repository_url":"https://api.github.com/repos/vermiculus/magithub","labels_url":"https://api.github.com/repos/vermiculus/magithub/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/vermiculus/magithub/issues/48/comments","events_url":"https://api.github.com/repos/vermiculus/magithub/issues/48/events","html_url":"https://github.com/vermiculus/magithub/issues/48","id":182494250,"number":48,"title":"magithub--edit-file-type does not account for .git being a file","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},"labels":[{"url":"https://api.github.com/repos/vermiculus/magithub/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-12T10:49:10Z","updated_at":"2016-10-12T17:40:10Z","closed_at":null,"body":"The actual gitdir does not have to be located inside the working tree.  The .git inside the working tree may also be a file whose contents sais where the real gitdir is (a long time ago a symlink was used, but Windows...).  This mechanism is used, for example, for submodules and alternative working trees.  An example:\r\n\r\nI have installed magithub as a submodule at\r\n\r\n    ~/.emacs.d/lib/magithub/\r\n\r\nand\r\n\r\n    ~/.emacs.d/lib/magithub/.git\r\n\r\nis a file, and the real gitdir is at\r\n\r\n    ~/.emacs.d/.git/modules/magithub/\r\n\r\nSo this will fail:\r\n\r\n    (s-suffix? \"/.git/\" (file-name-directory path))"},"comment":{"url":"https://api.github.com/repos/vermiculus/magithub/issues/comments/253284083","html_url":"https://github.com/vermiculus/magithub/issues/48#issuecomment-253284083","issue_url":"https://api.github.com/repos/vermiculus/magithub/issues/48","id":253284083,"user":{"login":"vermiculus","id":2082195,"avatar_url":"https://avatars.githubusercontent.com/u/2082195?v=3","gravatar_id":"","url":"https://api.github.com/users/vermiculus","html_url":"https://github.com/vermiculus","followers_url":"https://api.github.com/users/vermiculus/followers","following_url":"https://api.github.com/users/vermiculus/following{/other_user}","gists_url":"https://api.github.com/users/vermiculus/gists{/gist_id}","starred_url":"https://api.github.com/users/vermiculus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermiculus/subscriptions","organizations_url":"https://api.github.com/users/vermiculus/orgs","repos_url":"https://api.github.com/users/vermiculus/repos","events_url":"https://api.github.com/users/vermiculus/events{/privacy}","received_events_url":"https://api.github.com/users/vermiculus/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T17:40:10Z","updated_at":"2016-10-12T17:40:10Z","body":"`magit-git-dir` seems like my ticket to happy fun times, then 👍 I'll get a patch in tonight."}}
{"actor":{"display_login":"vermiculus"}}