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

postcheckout hook never exits during interactive rebase #80

Closed
christianacca opened this issue Dec 1, 2016 · 3 comments
Closed

postcheckout hook never exits during interactive rebase #80

christianacca opened this issue Dec 1, 2016 · 3 comments

Comments

@christianacca
Copy link

I've been struggling to resolve a problem with a postcheckout hook that is running during an git interactive rebase.

The symptoms of the problem are very obvious:

  • git rebase somesha -i
  • select that you want to reword one of the commit messages
  • confirm your answers (in my case I'm rewording one of the commit messages)
  • ... wait, wait, wait... give up waiting for the text editor to appear to prompt me to edit the commit message

This happens even for the simplest of postcheckout hooks.

For testing purposes I wrote the following hook which fails as described above:

package.json:

  "postcheckout": "node scripts/clean.js"

scripts/clean.js:

  process.exitCode = 0;

My setup is as follows:

  • Windows 10
  • node 6.2.2
  • husky@0.11.9

Any pointers as to what I need to do to get the postcheckout hook to exit so that the interactive rebase can continue?

Thanks
Christian

@pgosset
Copy link

pgosset commented Apr 11, 2018

Any news?

@tony
Copy link

tony commented Sep 4, 2018

Also having this issue making git rebase -i pretty slow.

@typicode
Copy link
Owner

typicode commented Jan 7, 2021

Closing as husky 5 may not have this issue.

@typicode typicode closed this as completed Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants