Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't init a repository with a description #466

Closed
bochecha opened this issue Jan 6, 2015 · 2 comments
Closed

Can't init a repository with a description #466

bochecha opened this issue Jan 6, 2015 · 2 comments

Comments

@bochecha
Copy link
Contributor

bochecha commented Jan 6, 2015

With pygit2 0.21.4:

>>> import pygit2
>>> 
>>> pygit2.init_repository("foo", bare=True)
pygit2.Repository('/home/mathieu/Workspace/palikao/foo/')
>>> 
>>> pygit2.init_repository("bar", bare=True, description="bar")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/pygit2/__init__.py", line 90, in init_repository
    options.description = to_bytes(description)
TypeError: initializer for ctype 'char *' must be a cdata pointer, not str

I get the same problem with both Python2 and Python3.

@jdavid
Copy link
Member

jdavid commented Jan 14, 2015

This should be fixed now PR #471 has been merged. Could you retry?

@jdavid jdavid closed this as completed Jan 16, 2015
@bochecha
Copy link
Contributor Author

Sorry for the delay, I confirm #471 fixes this issue. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants