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

Exception with new line #216

Closed
claudiu-cristea opened this issue Feb 6, 2024 · 2 comments · Fixed by #217
Closed

Exception with new line #216

claudiu-cristea opened this issue Feb 6, 2024 · 2 comments · Fixed by #217

Comments

@claudiu-cristea
Copy link
Contributor

I'm cloning https://github.com/RegioneER/rer.sitesearch with:

$repository = Admin::cloneRepository($localPath, $remoteUrl, [
   '--mirror',
   '--no-checkout',
   '--filter=tree:0',
]);

(I'm only interested in repo metadata)

Then I try to get all commits with:

$repository->getLog()->getCommits()

Specifically with this repo I hit this exception:

In ParserBase.php line 112:

  Expected "
  ", but got "" ()
@claudiu-cristea
Copy link
Contributor Author

It seems the offending commit is RegioneER/rer.sitesearch@0f3c51b where the commit message has an new line character at the end and nothing more:

primo commit\n

@claudiu-cristea
Copy link
Contributor Author

claudiu-cristea commented Feb 6, 2024

Actually, no, this happens when the first repo commit has an empty message. The offending commit is RegioneER/rer.sitesearch@118f0db

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

Successfully merging a pull request may close this issue.

1 participant