Error when running in a git repo
das74 opened this issue · comments
das74 commented
When running the script in a local git repo with all MD files stored in docs/
I get the error
raise InvalidGitRepositoryError(epath)
To solve this, I added search_parent_directories=True
to the Repo
object,
so that line 247 in markdown-to-confluence.py
is now:
repo = git.Repo(args.git, search_parent_directories=True)
This seems to avoid the error, but now the script tries this:
Attempting to deploy docs/__pycache__/convert.cpython-39.pyc
which results in
Skipping docs/__pycache__/convert.cpython-39.pyc since it's not a supported format.
Do you have any hint what do do?
Robert Bradley commented
Did you add and commit the docs folder? - I had the same until I did that