Skip to content

Exception with new line #216

Closed
Closed

Description

@claudiu-cristea

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 "" ()

Activity

  1. claudiu-cristea commented on Feb 6, 2024

    @claudiu-cristea
    ContributorAuthor

    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
    
  2. claudiu-cristea commented on Feb 6, 2024

    @claudiu-cristea
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions