Issue for plotting a graph as a python module
Hi,
Could you please help? I am unable to plot a graph as a Python module.
I am constantly getting this issue with dg.DotGraph() function: File "git_graph/git_functions.py", line 9, in execute_git_command if not (path / '.git').is_dir(): TypeError: unsupported operand type(s) for /: 'str' and 'str'
To reproduce the issue. You can create a quick git repository and then use your package as a python module as mentioned in the documentation
Thanks for your help!
Hi. Sorry the documentation to run git-graph as a python module is outdated. The parameter of dg.DotGraph() should definitely be a pathlib.Path and not a string. You can check existing calls to dg.DotGraph() in cli.py and test_dot_graph.py. You will see that both pass a pathlib.Path as parameter.
Hi, No problem. Thanks for your answer. I made a pull request to fix this issue.
Hi, Sorry just re-read your post. This makes sense. Ok so the documentation only requires a fix. Thanks!
Exactly. I'll try to do that as soon as I get a little time. Thank you for your contribution.