Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Parser error (Cannot read property 'split' of undefined) #713

Closed
bushev opened this issue Jan 9, 2022 · 1 comment
Closed

Parser error (Cannot read property 'split' of undefined) #713

bushev opened this issue Jan 9, 2022 · 1 comment

Comments

@bushev
Copy link

bushev commented Jan 9, 2022

Hello,

I've got an error from parser util then trying to pull from remote in case of conflicts.

Error
From github.com:ybushev/test
 * branch            main       -> FETCH_HEAD
fatal: Not possible to fast-forward, aborting.

{
  commands: [ 'pull', 'git@github.com:ybushev/test.git', 'main', '--ff-only' ],
  format: 'utf-8',
  parser: [Function: parser]
}
(node:99399) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'split' of undefined
    at Object.toLinesWithContent (/Users/bushev/IdeaProjects/****-server/node_modules/simple-git/src/lib/utils/util.ts:59:17)
    at /Users/bushev/IdeaProjects/****-server/node_modules/simple-git/src/lib/utils/task-parser.ts:12:24
@bushev bushev changed the title Parser error Parser error (Cannot read property 'split' of undefined) Jan 9, 2022
@steveukx
Copy link
Owner

Hi, thank you for opening the issue.

A new version (3.1.0) is now available on npm that recognises this fatal error in a pull and responds with a GitResponseError<PullFailedResult> detailing the error.

For more details - please see GitResponseError and PullFailedResult.

If you have any problems integrating with the new version, please do open a new issue.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants