This guide is a supplement to How to use git bisect
.
git-commit
has been deleted from melpa, so commits of doom emacs that depend on git-commit
fail at doom sync -u
with this error:
x There was an unexpected runtime error
Message: Could not find package git-commit. Updating recipe repositories: (org-elpa melpa nongnu-elpa gnu-elpa-mirror el-get emacsmirror-mirror) with ‘straight-pull-recipe-repositories’ may fix this
To work around the issue, we can patch these older versions to not depend on git-commit
.
First, disable the magit module in init.el
if you have it enabled.
Start bisecting as normal. After git gives you a revision to test, and before doom sync -u
, run git cherry-pick --no-commit [07eae64](https://github.com/doomemacs/doomemacs/commit/07eae6450934cac13b1b625116be4e7cd0bfa3c1)
. This commit removes the git-commit
dependency. If you have a merge conflict, resolve it making sure to delete the line containing git-commit
. Test the revision, then run git reset --hard
followed by git bisect good/bad
.