{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/setuptools_scm/issues/93","repository_url":"https://api.github.com/repos/pypa/setuptools_scm","labels_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/93/comments","events_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/93/events","html_url":"https://github.com/pypa/setuptools_scm/issues/93","id":169806742,"number":93,"title":"Travis clones shallow repo, breaks git describe","user":{"login":"anthrotype","id":6939968,"avatar_url":"https://avatars.githubusercontent.com/u/6939968?v=3","gravatar_id":"","url":"https://api.github.com/users/anthrotype","html_url":"https://github.com/anthrotype","followers_url":"https://api.github.com/users/anthrotype/followers","following_url":"https://api.github.com/users/anthrotype/following{/other_user}","gists_url":"https://api.github.com/users/anthrotype/gists{/gist_id}","starred_url":"https://api.github.com/users/anthrotype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthrotype/subscriptions","organizations_url":"https://api.github.com/users/anthrotype/orgs","repos_url":"https://api.github.com/users/anthrotype/repos","events_url":"https://api.github.com/users/anthrotype/events{/privacy}","received_events_url":"https://api.github.com/users/anthrotype/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pypa/setuptools_scm/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/pypa/setuptools_scm/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-07T17:31:26Z","updated_at":"2016-10-20T22:02:50Z","closed_at":null,"body":"Hi,\r\nMaybe this is obvious for many of you. However, I spent more than one hour trying to figure out why setuptools_scm was not working on Travis, but it was working locally.\r\nIt turned out that Travis clones the repo with --depth=50, so if you have more than 50 commits since the last tag the `git describe` command fails, and setuptools_scm will use the fallback `0.0` version.\r\n\r\nThe workaround was simply to  do `git fetch --unshallow`.\r\n\r\nI know this is not strictly setuptools_scm's problem, but rather a Travis or a git problem.\r\nBut maybe it could help other users if this was mentioned in the README?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/pypa/setuptools_scm/issues/comments/255240956","html_url":"https://github.com/pypa/setuptools_scm/issues/93#issuecomment-255240956","issue_url":"https://api.github.com/repos/pypa/setuptools_scm/issues/93","id":255240956,"user":{"login":"RonnyPfannschmidt","id":156838,"avatar_url":"https://avatars.githubusercontent.com/u/156838?v=3","gravatar_id":"","url":"https://api.github.com/users/RonnyPfannschmidt","html_url":"https://github.com/RonnyPfannschmidt","followers_url":"https://api.github.com/users/RonnyPfannschmidt/followers","following_url":"https://api.github.com/users/RonnyPfannschmidt/following{/other_user}","gists_url":"https://api.github.com/users/RonnyPfannschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RonnyPfannschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonnyPfannschmidt/subscriptions","organizations_url":"https://api.github.com/users/RonnyPfannschmidt/orgs","repos_url":"https://api.github.com/users/RonnyPfannschmidt/repos","events_url":"https://api.github.com/users/RonnyPfannschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RonnyPfannschmidt/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T22:02:49Z","updated_at":"2016-10-20T22:02:49Z","body":"@anthrotype  its now possible to use the specification of a parse function to import and use the strategies from #93, i'd appreciate feedback on its use/utility (its completely experimental)"}}
{"actor":{"display_login":"RonnyPfannschmidt"}}