You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not knowledgeable enough about Zsh and Git to understand why this occurs. For some reasons, using setopt GLOB_DOTS causes two of my plug-ins to fail to update with zpm u.
To Reproduce
Use this .zshrc file:
if [[ !-f~/.zpm/zpm.zsh ]];then
git clone --recursive https://github.com/zpm-zsh/zpm ~/.zpm
fisource~/.zpm/zpm.zsh
# This seems to be the culprit. Commented for now, see explanations below.# setopt GLOB_DOTS
zpm load zdharma-continuum/history-search-multi-word
zpm load zdharma-continuum/fast-syntax-highlighting
Upgrade zpm-zsh/helpers ✔
Upgrade @zpm ✔
Upgrade zdharma-continuum/fast-syntax-highlighting ✔
Upgrade zdharma-continuum/history-search-multi-word ✔
# All plugins update just fine, including the last two
Uncomment setopt GLOB_DOTS in .zshrc and save the modifications
Open a new Zsh instance and run zpm clean (since we've made some changes, as per:
Manually running git pull in both directories also fails:
cd zdharma-continuum---fast-syntax-highlighting
git pull
fatal: bad object refs/heads/master.zwc
error: https://github.com/zdharma-continuum/fast-syntax-highlighting did not send all necessary objects
cd zdharma-continuum---history-search-multi-word
git pull
fatal: bad object refs/heads/main.zwc
error: https://github.com/zdharma-continuum/history-search-multi-word did not send all necessary objects
Describe the bug
I'm not knowledgeable enough about Zsh and Git to understand why this occurs. For some reasons, using
setopt GLOB_DOTS
causes two of my plug-ins to fail to update withzpm u
.To Reproduce
.zshrc
file:exec zsh
zpm u
:Upgrade zpm-zsh/helpers ✔ Upgrade @zpm ✔ Upgrade zdharma-continuum/fast-syntax-highlighting ✔ Upgrade zdharma-continuum/history-search-multi-word ✔ # All plugins update just fine, including the last two
Uncomment
setopt GLOB_DOTS
in.zshrc
and save the modificationsOpen a new Zsh instance and run
zpm clean
(since we've made some changes, as per:zpm/README.md
Line 456 in 06e2630
A
master.zwc
file appears in both~/.zpm/plugins/zdharma-continuum---fast-syntax-highlighting/.git/refs/heads/
~/.zpm/plugins/zdharma-continuum---history-search-multi-word/.git/refs/heads/
Run
zpm u
:Manually running
git pull
in both directories also fails:setopt GLOB_DOTS
in.zshrc
and save the modifications.zpm u
): both plugins update just fine.Expected behavior
These two plug-ins are updated just like the others (possibly by avoiding
main.zwc
creation in both plug-ins repos?)Additional context
No issue with the other Zsh plugins managers I've tried, the
main.zwc
file isn't created for any plug-in, including these two.Hopefully you can reproduce.
The text was updated successfully, but these errors were encountered: