zinit self-update failed with a git error (due to conflicting branches).
Steps to reproduce
Run zinit self-update.
Relevant output
❯ zinit self-update
[self-update] fetching latest changes from main branch
error: cannot lock ref 'refs/remotes/origin/ci/speedup-zunit': 'refs/remotes/origin/ci' exists; cannot create 'refs/remotes/origin/ci/speedup-zunit'
error: some local refs could not be updated; try running
'git remote prune origin' to remove any old, conflicting branches
From https://github.com/zdharma-continuum/zinit
* branch main -> FETCH_HEAD
Already up to date.
[self-update] compiling zinit via zcompile
[self-update] reloading zinit for the current session
What happened?
zinit self-update
failed with agit
error (due to conflicting branches).Steps to reproduce
Run
zinit self-update
.Relevant output
Screenshots and recordings
No response
Operating System & Version
OS: darwin22.0 | Vendor: apple | Machine: x86_64 | CPU: x86_64 | Processor: i386 | Hardware: x86_64
Zsh version
zsh 5.9 (x86_64-apple-darwin22.0)
Terminal emulator
xterm-256color
// iTerm2If using WSL on Windows, which version of WSL
None
Additional context
It seems there are conflicting branches, pruning them resolves the issue:
Code of Conduct