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
GitHistoryParser: Unparseable date #1193
Comments
since this is git related, I am marking as stopper tia |
Unfortunatelly I cannot provide you with access to the git repo. Are there some commands that you would like be run on the repo? I did not have a lot of time to investigate where git is actually called, but I am suspecting that there might be a problem to retrieve the DateTime format of the repo, rather than the other way around. I have tried also setting everything to date format or to iso, that did also not help. |
Hi, If yes, we're failing on documentation:
and we should fix it. Anyways @tarzanek we should consider using the |
I'll try to build grok from the sources and debug myself. Thanks for pointing out where the info is retrieved. |
The history parser magic is here GitHistoryParser.java#L94-L100 And the command used to get the history is (found in GitRepository.java) $ git log --abbrev-commit --abbrev=8 --name-only --pretty=fuller |
@tulinkry yes, we should use --date ... but looking at that man page, it seems we should accept both dates with timezone and without ... |
Please note that if the git user defines in their own config a different format, a raw conversion might yield strange results, since a log without On the fix side, I have tried appending |
@aemyllius That's what I meant. Override the users config by using I'd do that rather than staying without the |
I have explored quite a bit the formats, and the above mentioned solutios seems to work fine if you want to get also the time zone. Other formats have a very unpleasant mismatch beween the C++ specs that return nothing for the timezone if not defined, and the Java DateTime cconvertors, that use the letter Z to show that the timezone is not defined. I have compiled and used the modified jar, but it does not do the junit tests out of the box (not properly configured yet I guess), otherwise I would have created a patch myself :) . |
Git history retrieval hits an error when trying to parse the date from git log. On the whole index generation, it only hits this error in about 20% of the cases. The issue is that once this error is hit, the file is not indexed anymore. This is the crucial point.
Initially file seems to be analyzed by good analyzer. When checking indexing results, the file exists in index, but has no contents.
The text was updated successfully, but these errors were encountered: