Consider this short piece of code:
from pathlib import Path
from pydriller import Repository
REPO_DIR = Path('~/foo/bar/').expanduser()
repo = Repository(REPO_DIR)
It breaks:
Exception: The path to the repo has to be of type 'string' or 'list of strings'!
It's worth noting that GitPython's Repo supports any PathLike object.
Workaround
Yes, I can manually convert the Path to a string. But PyDriller should support Path objects natively.
Consider this short piece of code:
It breaks:
It's worth noting that GitPython's Repo supports any PathLike object.
Workaround
Yes, I can manually convert the
Pathto a string. But PyDriller should supportPathobjects natively.