{"action":"closed","issue":{"url":"https://api.github.com/repos/pre-commit/pre-commit/issues/213","labels_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/213/comments","events_url":"https://api.github.com/repos/pre-commit/pre-commit/issues/213/events","html_url":"https://github.com/pre-commit/pre-commit/issues/213","id":63674772,"number":213,"title":"Does not work within submodules","user":{"login":"quentindemetz","id":2451971,"avatar_url":"https://avatars.githubusercontent.com/u/2451971?v=3","gravatar_id":"","url":"https://api.github.com/users/quentindemetz","html_url":"https://github.com/quentindemetz","followers_url":"https://api.github.com/users/quentindemetz/followers","following_url":"https://api.github.com/users/quentindemetz/following{/other_user}","gists_url":"https://api.github.com/users/quentindemetz/gists{/gist_id}","starred_url":"https://api.github.com/users/quentindemetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quentindemetz/subscriptions","organizations_url":"https://api.github.com/users/quentindemetz/orgs","repos_url":"https://api.github.com/users/quentindemetz/repos","events_url":"https://api.github.com/users/quentindemetz/events{/privacy}","received_events_url":"https://api.github.com/users/quentindemetz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pre-commit/pre-commit/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/pre-commit/pre-commit/labels/test-coverage","name":"test-coverage","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-23T09:23:08Z","updated_at":"2015-12-19T06:45:16Z","closed_at":"2015-12-19T06:45:16Z","body":"I'm getting: \r\n```\r\nAn unexpected error has occurred: NotADirectoryError: [Errno 20] Not a directory: '/home/quentin/chef-repo/cookbooks/ssmtp-cookbook/.git/hooks/pre-commit'\r\n```\r\nchef-repo is my primary repository and ssmtp-cookbook a git submodule of that. \r\n\r\n**ssmtp-cookbook/.git file contents:**\r\n```\r\ngitdir: ../../.git/modules/cookbooks/ssmtp-cookbook\r\n```"}}