{"action":"created","issue":{"url":"https://api.github.com/repos/magit/magit/issues/2408","labels_url":"https://api.github.com/repos/magit/magit/issues/2408/labels{/name}","comments_url":"https://api.github.com/repos/magit/magit/issues/2408/comments","events_url":"https://api.github.com/repos/magit/magit/issues/2408/events","html_url":"https://github.com/magit/magit/issues/2408","id":118901473,"number":2408,"title":"magic incorrectly treats file as untracked if file has executable bit set","user":{"login":"zuav","id":349106,"avatar_url":"https://avatars.githubusercontent.com/u/349106?v=3","gravatar_id":"","url":"https://api.github.com/users/zuav","html_url":"https://github.com/zuav","followers_url":"https://api.github.com/users/zuav/followers","following_url":"https://api.github.com/users/zuav/following{/other_user}","gists_url":"https://api.github.com/users/zuav/gists{/gist_id}","starred_url":"https://api.github.com/users/zuav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuav/subscriptions","organizations_url":"https://api.github.com/users/zuav/orgs","repos_url":"https://api.github.com/users/zuav/repos","events_url":"https://api.github.com/users/zuav/events{/privacy}","received_events_url":"https://api.github.com/users/zuav/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magit/magit/labels/01%20unconfirmed","name":"01 unconfirmed","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-25T18:57:39Z","updated_at":"2015-11-26T20:32:08Z","closed_at":null,"body":"Magit 20151123.1028, Git 2.6.3, Emacs 24.5.1 OS X 10.11.1\r\n\r\nIt's very easy to reproduce the bug.\r\nCreate a new repo with one bash script in it, set executable bit on the script and commit it to the repo. Then try magic-log-buffer-file on the script file.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/magit/magit/issues/comments/159990743","html_url":"https://github.com/magit/magit/issues/2408#issuecomment-159990743","issue_url":"https://api.github.com/repos/magit/magit/issues/2408","id":159990743,"user":{"login":"johnmastro","id":836262,"avatar_url":"https://avatars.githubusercontent.com/u/836262?v=3","gravatar_id":"","url":"https://api.github.com/users/johnmastro","html_url":"https://github.com/johnmastro","followers_url":"https://api.github.com/users/johnmastro/followers","following_url":"https://api.github.com/users/johnmastro/following{/other_user}","gists_url":"https://api.github.com/users/johnmastro/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmastro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmastro/subscriptions","organizations_url":"https://api.github.com/users/johnmastro/orgs","repos_url":"https://api.github.com/users/johnmastro/repos","events_url":"https://api.github.com/users/johnmastro/events{/privacy}","received_events_url":"https://api.github.com/users/johnmastro/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T20:32:08Z","updated_at":"2015-11-26T20:32:08Z","body":"A few other things to try:\r\n\r\n```emacs-lisp\r\n(magit-rev-parse-safe \"--show-toplevel\")\r\n(magit-rev-parse-safe \"--git-dir\")\r\n```\r\n\r\nAnd from the shell:\r\n\r\n```sh\r\nls -l /private/var/tmp/repo\r\nls -l /private/var/tmp/repo/script.sh\r\n```"}}