Skip to content

Exception when constructing a Repo() from a pathlib.Path #757

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

Closed
altendky opened this issue May 21, 2018 · 0 comments
Closed

Exception when constructing a Repo() from a pathlib.Path #757

altendky opened this issue May 21, 2018 · 0 comments

Comments

@altendky
Copy link

Traceback (most recent call last):
  File "venv/bin/gridtied", line 11, in <module>
    load_entry_point('gridtied', 'console_scripts', 'gridtied')()
  File "/home/epc/g/20/grid-tied/venv/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/epc/g/20/grid-tied/venv/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/epc/g/20/grid-tied/venv/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/epc/g/20/grid-tied/venv/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/epc/g/20/grid-tied/venv/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/epc/g/20/grid-tied/python/gridtied/package.py", line 59, in cli
    commit(),
  File "/home/epc/g/20/grid-tied/python/gridtied/package.py", line 35, in commit
    repo = git.Repo(gridtied.project_root)
  File "/home/epc/g/20/grid-tied/venv/lib/python3.6/site-packages/git/repo/base.py", line 119, in __init__
    if expand_vars and ("%" in epath or "$" in epath):
TypeError: argument of type 'PosixPath' is not iterable

https://github.com/gitpython-developers/GitPython/blob/master/git/repo/base.py#L119

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

No branches or pull requests

2 participants