Skip to content
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

Error when running with output directory = gitstats source #92

Open
raoulbhatia opened this issue Mar 5, 2019 · 2 comments
Open

Error when running with output directory = gitstats source #92

raoulbhatia opened this issue Mar 5, 2019 · 2 comments

Comments

@raoulbhatia
Copy link

Started with outputpath = local git checkout.

cd Downloads/gitstats-master && ./gitstats /Users/X/git/myrepo .

Error observed:

Refining data...
Saving cache...
Generating report...
Traceback (most recent call last):
  File "./gitstats", line 1490, in <module>
    g.run(sys.argv[1:])
  File "./gitstats", line 1477, in run
    report.create(data, outputpath)
  File "./gitstats", line 744, in create
    shutil.copyfile(src, path + '/' + file)
  File "/usr/local/Cellar/python@2/2.7.15_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))
shutil.Error: `/Users/XYZ/Downloads/gitstats-master/gitstats.css` and `/Users/XYZ/Downloads/gitstats-master/gitstats.css` are the same file

Perhaps it would help to either check on startup (a) if the local directory is the "source" directory, and/or (b) if the resources that gitstats will to deploy already exist? On big Git repositories, this would save the user from re-starting the whole process.

@Bala2103
Copy link

I am also facing the same issue , any solution ?

@sebix
Copy link

sebix commented Aug 6, 2019

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

No branches or pull requests

3 participants