erikbern / git-of-theseus

Analyze how a Git repo grows over time
https://erikbern.com/2016/12/05/the-half-life-of-code.html
Apache License 2.0
2.56k stars 85 forks source link

Got InvalidGitRepositoryError when analyze survival.json #72

Closed khiav223577 closed 4 years ago

khiav223577 commented 4 years ago
$ git-of-theseus-analyze survival.json 
Traceback (most recent call last):
  File "/usr/local/bin/git-of-theseus-analyze", line 10, in <module>
    sys.exit(analyze_cmdline())
  File "/usr/local/lib/python2.7/site-packages/git_of_theseus/analyze.py", line 185, in analyze_cmdline
    analyze(**kwargs)
  File "/usr/local/lib/python2.7/site-packages/git_of_theseus/analyze.py", line 30, in analyze
    repo = git.Repo(repo)
  File "/usr/local/lib/python2.7/site-packages/git/repo/base.py", line 183, in __init__
    raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: /Users/khiav223577/Desktop/PaGamO2.K/survival.json
khiav223577 commented 4 years ago

I found the problem. I should use git-of-theseus-stack-plot to plot.