{"action":"closed","issue":{"url":"https://api.github.com/repos/libgit2/pygit2/issues/466","labels_url":"https://api.github.com/repos/libgit2/pygit2/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/pygit2/issues/466/comments","events_url":"https://api.github.com/repos/libgit2/pygit2/issues/466/events","html_url":"https://github.com/libgit2/pygit2/issues/466","id":53548000,"number":466,"title":"Can't init a repository with a description","user":{"login":"bochecha","id":272170,"avatar_url":"https://avatars.githubusercontent.com/u/272170?v=3","gravatar_id":"","url":"https://api.github.com/users/bochecha","html_url":"https://github.com/bochecha","followers_url":"https://api.github.com/users/bochecha/followers","following_url":"https://api.github.com/users/bochecha/following{/other_user}","gists_url":"https://api.github.com/users/bochecha/gists{/gist_id}","starred_url":"https://api.github.com/users/bochecha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bochecha/subscriptions","organizations_url":"https://api.github.com/users/bochecha/orgs","repos_url":"https://api.github.com/users/bochecha/repos","events_url":"https://api.github.com/users/bochecha/events{/privacy}","received_events_url":"https://api.github.com/users/bochecha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-06T18:45:38Z","updated_at":"2015-01-16T12:03:39Z","closed_at":"2015-01-16T12:03:39Z","body":"With pygit2 0.21.4:\r\n\r\n```\r\n>>> import pygit2\r\n>>> \r\n>>> pygit2.init_repository(\"foo\", bare=True)\r\npygit2.Repository('/home/mathieu/Workspace/palikao/foo/')\r\n>>> \r\n>>> pygit2.init_repository(\"bar\", bare=True, description=\"bar\")\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib64/python2.7/site-packages/pygit2/__init__.py\", line 90, in init_repository\r\n    options.description = to_bytes(description)\r\nTypeError: initializer for ctype 'char *' must be a cdata pointer, not str\r\n```\r\n\r\nI get the same problem with both Python2 and Python3."}}