2 ms·
You can check inside the hook if you're in the middle of the rebase, and exit the hook early. This is what we have in our hooks: if [ -d "$(git rev-parse
by jakub_g 1y ago
You can check inside the hook if you're in the middle of the rebase, and exit the hook early.
This is what we have in our hooks:
if [ -d "$(git rev-parse --git-path rebase-merge)" ] || \
[ -d "$(git rev-parse --git-path rebase-apply)" ] || \
[ -f "$(git rev-parse --git-path MERGE_HEAD)" ]; then
exit 0
fi
- rmwaite 1y agoThanks for this, I can’t believe this never occurred to me to try to do.