question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected error when running commit checker.

See original GitHub issue

What version are you using?

2.1.0

What did you do?

Added a commit, then checked out a new branch (for renaming purposes). Rebased from upstream. Ran npm run check-commit

What happened?

Got an error saying More than one commit found, please squash.

What did you expect to happen?

Since I only added one commit, I didn’t expect to see this message. My local master wasn’t up to date. Reading the checkGitCommit function, I realized thats where the disparity was,. Solution was to delete my local master, so that this check ran instead

https://github.com/eslint/eslint/blob/ec803b268ade7b9093ac127083ca69c2ad7a2b47/Makefile.js#L871

I think this check assumes local master is up to date, which isn’t always true imo (since one can rebase later, etc). Instead I think the check should run against upstream/master.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
not-an-aardvarkcommented, Sep 6, 2017

We don’t actually require commits to be squashed anymore, so maybe we should just remove that check.

0reactions
i-ron-ycommented, Sep 6, 2017

Just a heads up: I’ve just had the misfortune to encounter this very same problem while I was committing for my latest pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error when using pre-commit · Issue #621 - GitHub
An unexpected error has occurred: CalledProcessError: command: ('C:\\Users\\Divkix\\. cache\\pre-commit\\repo6ntlzin2\\py_env-python3\\Scripts\ ...
Read more >
401 Error when a specific user submits a commit
A user is trying to commit a change into Bitbucket, the project has the Yet Another Commit Checker plugin enabled. The commit fails...
Read more >
WebIDE throws "Could not commit. An unexpected error ...
Currently, when trying to commit a change using the Web IDE are presented with an unspecific error, should a hook return a non-zero...
Read more >
pre-commit Failed : an unexpected error. spawn UNKNOWN ...
Husky is used by JHipster to install a git pre-commit hook that is run by git before doing a commit, if this script...
Read more >
Commit or Snapshot With Bitbucket Fails With Error 'Push ...
"Unexpected Error while taking a Snapshot. Id: XXXXXXXXXXXXXXX. Message: Push wasn't done due to an error. Tip: check git permissions and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found