src-d / hercules

Gaining advanced insights from Git repository history.
Other
2.63k stars 334 forks source link

internal integrity error src 0 != 2 #346

Open olliiiver opened 4 years ago

olliiiver commented 4 years ago

Hey, thanks for the great work!

Looks like if the --languages flag is set, the process runs into an error on commits with empty files.

./hercules.darwin_amd64 https://github.com/olliiiver/hercules-test.git --burndown --languages php
 0 / 9 [-----------------------------------------------------------------------][INFO] 2020/01/17 00:41:09 ====TREE====
0 0
2 -1
[ERROR] 2020/01/17 00:41:09 Burndown failed on commit #6 (7) eba770bead80fcc2e89cf880b3c7f709c727c9a8: index.php: internal integrity error src 0 != 2 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 -> a77b779561acb7bb22b925264c9b1f6f3f623e19
[ERROR] 2020/01/17 00:41:09 Failed to run the pipeline on [https://github.com/olliiiver/hercules-test.git]
2020/01/17 00:41:09 failed to run the pipeline: index.php: internal integrity error src 0 != 2 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 -> a77b779561acb7bb22b925264c9b1f6f3f623e19
vmarkovtsev commented 4 years ago

Ack. Thanks for reporting!

yoghurt-x86 commented 1 year ago

I am having the same issue. Is there a fix or workaround i can do? I am currently running this on a project with large text files and source code in the same repo. I would like to separate the source code from other data. Otherwise the charts I'm generating are looking very weird.