Added explicit check for path = None in init_repository

Closes #688.
This commit is contained in:
Tamir Bahar 2017-04-05 16:37:25 +03:00
parent 453fd8a9a3
commit 7ee851273a

@ -105,6 +105,9 @@ def init_repository(path, bare=False,
See libgit2's documentation on git_repository_init_ext for further details.
"""
# Pre-process input parameters
if path is None:
raise TypeError('Expected string type for path, found None.')
if bare:
flags |= GIT_REPOSITORY_INIT_BARE