src-d / hercules

Gaining advanced insights from Git repository history.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

internal integrity error src 0 != 2

olliiiver opened this issue · comments

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

Ack. Thanks for reporting!

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.