git-graph
git-graph copied to clipboard
git graph not working
Installed git-graph after satisfying all the dependencies. However, on running the git graph command, I get this on a keyboard interrupt after waiting for a minute.
$ git graph
Traceback (most recent call last):
File "C:\Users\Shashwat\AppData\Local\Programs\Python\Python37\Scripts\git-graph-script.py", line 11, in <module>
load_entry_point('git-graph==1.2', 'console_scripts', 'git-graph')()
File "C:\Users\Shashwat\AppData\Local\Programs\Python\Python37\lib\site-packages\git_graph\cli.py", line 58, in main
dot_graph = dg.DotGraph(git_path, nodes=args.nodes)
File "C:\Users\Shashwat\AppData\Local\Programs\Python\Python37\lib\site-packages\git_graph\dot_graph.py", line 78, in __init__
git_graph = gg.GitGraph(self.git_path).build_graph()
File "C:\Users\Shashwat\AppData\Local\Programs\Python\Python37\lib\site-packages\git_graph\git_graph_class.py", line 87, in build_graph
self.trees = build_git_trees(self.path, trees)
File "C:\Users\Shashwat\AppData\Local\Programs\Python\Python37\lib\site-packages\git_graph\git_graph_class.py", line 11, in build_git_trees
for each_line in gf.read_git_file(path, each_tree):
File "C:\Users\Shashwat\AppData\Local\Programs\Python\Python37\lib\site-packages\git_graph\git_functions.py", line 24, in read_git_file
return execute_git_command(path, 'cat-file -p ' + sha1_file)
File "C:\Users\Shashwat\AppData\Local\Programs\Python\Python37\lib\site-packages\git_graph\git_functions.py", line 14, in execute_git_command
output = subprocess.run(bash_command.split(), stdout=subprocess.PIPE)
File "C:\Users\Shashwat\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 490, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "C:\Users\Shashwat\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 951, in communicate
stdout = self.stdout.read()
KeyboardInterrupt
Can you please try to install from GitHub and run the pytest command to check if it succeeds or fails similarly ? Thanks
I tried it again. It appears that it only works with repositories with a very small number of commits.
Normally the graph should be created whatever the repository size. However for large graph rendering, GraphViz dot can encounter difficulties and hang forever.