Lazygit hanging due to Commitizen #4344
Unanswered
jaredmcateer
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't think there's much you can do besides the workarounds you mentioned. Personally I think it's a very bad idea for a pre-commit hook or prepare-commit-msg hook to assume that it runs in a terminal and can request input from the user. That's just not what a git hook is supposed to do. I wonder how other GUI clients cope with this (e.g. Fork, Tower, any of the many others out there). Have you tried any of these? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A bunch of repos in our org have
prepare-commit-msg
hooks (via husky) that enforce conventional commits via commitizen, whenever this is triggered LazyGit will hang. This is sort of fixed by using Shift+c when committing but is still broken on rebase & merge actions.I end up having to kill the process and then fix it in via command line. I'm often in vim when this happens so it also creates a mess of my workspace if I have unsaved files open. It's driving me bonkers.
Right now I have a custom command for merging
I'd rather not have to override a repos hook rules as there can be other things its doing that I still want to run (lint, tests, etc). Additionally I don't get the other merge options unless I manually rewrite all the menus for merge/rebase. Before I do so is there a way to make LazyGit and CZ play nice with each other?
Beta Was this translation helpful? Give feedback.
All reactions