ohmyzsh: Oh My Zsh hangs after update when displaying the changelog
Describe the bug
After running oh-my-zsh automatic update, the command hangs and starts printing a long list of git logs after a while.
See the outputs here: https://app.warp.dev/block/KqshGhrLdrilLmwq3P2im5
Steps to reproduce
cd $ZSH- Get to an old state
git reset --hard HEAD~10 - Run
omz update
Expected behavior
The automatic update command should bootstrap.
Screenshots and recordings
https://share.getcloudapp.com/04u5PY8r
OS / Distro
macOS 11.4
Zsh version
5.8
Terminal emulator
iTerm2
If using WSL on Windows, which version of WSL
No response
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (9 by maintainers)
Commits related to this issue
- fix(changelog): don't show more than 40 commits (#10345) Fixes #10345 — committed to sudeeshjohn/oh-my-zsh by mcornella 3 years ago
- fix(changelog): don't show more than 40 commits (#10345) Fixes #10345 — committed to stdiopt/oh-my-zsh by mcornella 3 years ago
- fix(changelog): don't show more than 40 commits (#10345) Fixes #10345 — committed to emcrisostomo/oh-my-zsh by mcornella 3 years ago
- Merge remote-tracking branch 'officialorigin/master' into maojj * officialorigin/master: style: use 24bit colors in Oh My Zsh logo if supported fix(cli): follow symlinks in plugin or theme comple... — committed to maojj/oh-my-zsh by deleted user 2 years ago
- fix(changelog): don't show more than 40 commits (#10345) Fixes #10345 — committed to amkirby/oh-my-zsh by mcornella 3 years ago
- fix(changelog): don't show more than 40 commits (#10345) Fixes #10345 — committed to cmoore/oh-my-zsh by mcornella 3 years ago
- fix(changelog): don't show more than 40 commits (#10345) Fixes #10345 — committed to Daddelhai/ohmyzsh by mcornella 3 years ago
- fix(changelog): don't show more than 40 commits (#10345) Fixes #10345 — committed to tekniklr/oh-my-zsh by mcornella 3 years ago
- fix(changelog): don't show more than 40 commits (#10345) Fixes #10345 — committed to nbaronov/oh-my-zsh by mcornella 3 years ago
- fix(changelog): don't show more than 40 commits (#10345) Fixes #10345 — committed to ferdnyc/ohmyzsh by mcornella 3 years ago
OK, looks like somehow the merge commit we made recently got you a partially disjointed commit graph, where some commits from the merge commit were older than the first commit of the shallow clone:
The last commit you see in this partially redacted commit graph tells you that the repo is a shallow clone (you see grafted when the commit is a squashed version of all the parent commits).
I solved this by unshallow-ing the repository, with the following command:
This downloads all the commit objects so that the two branches of the merge commit (6f4c7f64) are now connected. After that, the
git rev-listcommand properly returns the 10 commits of difference.I disabled merge commits in the project so that this doesn’t happen again, and I’ll push a fix so that the changelog doesn’t process more than N commits so it doesn’t hang indefinitely.