{"action":"opened","issue":{"url":"https://api.github.com/repos/jaraco/setuptools_scm/issues/55","labels_url":"https://api.github.com/repos/jaraco/setuptools_scm/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/jaraco/setuptools_scm/issues/55/comments","events_url":"https://api.github.com/repos/jaraco/setuptools_scm/issues/55/events","html_url":"https://github.com/jaraco/setuptools_scm/issues/55","id":92444390,"number":55,"title":"Use a smarter way to detect git repositories","user":{"login":"jaraco","id":308610,"avatar_url":"https://avatars.githubusercontent.com/u/308610?v=3","gravatar_id":"","url":"https://api.github.com/users/jaraco","html_url":"https://github.com/jaraco","followers_url":"https://api.github.com/users/jaraco/followers","following_url":"https://api.github.com/users/jaraco/following{/other_user}","gists_url":"https://api.github.com/users/jaraco/gists{/gist_id}","starred_url":"https://api.github.com/users/jaraco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaraco/subscriptions","organizations_url":"https://api.github.com/users/jaraco/orgs","repos_url":"https://api.github.com/users/jaraco/repos","events_url":"https://api.github.com/users/jaraco/events{/privacy}","received_events_url":"https://api.github.com/users/jaraco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-01T17:45:17Z","updated_at":"2015-07-01T17:45:17Z","closed_at":null,"body":"Currently, hgdistver looks for .git to determine if cwdir is a git repository. Instead, running a git command such as git status should be used to determine if the current repo is a git directory. If the command fails w/ a status error, then we have an invalid repo otherwise, we're in a git repo.\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/pypa/setuptools_scm/issue/10\n- Originally reported by: Amit Ambasta\n- Originally created at: 2014-06-30T16:15:11.903\n"}}