z-shell / zi

✨ A Swiss Army Knife for Zsh - Unix Shell
https://wiki.zshell.dev
MIT License
735 stars 42 forks source link

[bug]: self-update shows `fatal: couldn't find remote ref master` #251

Closed onokatio closed 1 year ago

onokatio commented 1 year ago

Environment

Device: apple | darwin21.3.0 | arm64 Shell: /opt/homebrew/bin/zsh | -zsh | zsh-5.9-0-g73d3173 Zi: 7590afa276a00e85eb8a8dc6a02624935f8f9665

Reproduction steps

1. `cd some-git-repo-dir`
2. `git checkout master`
3. `zi self-update`

Expected behavior

zi shows:

Already up to date.
Compiling »»» ❮ Zi ❯ …
Reloading »»» ❮ Zi ❯ …

Current behavior

zi shows:

fatal: couldn't find remote ref master
Compiling »»» ❮ Zi ❯ …
Reloading »»» ❮ Zi ❯ …

Code snippet

I think this is no relating .zshrc.

Additional information

Maybe this line must include cd -q "$ZI[BIN_DIR]" before current_branch=

https://github.com/z-shell/zi/blob/7590afa276a00e85eb8a8dc6a02624935f8f9665/lib/zsh/autoload.zsh#L634

Self-service

Have you read the Contributing Guidelines?

Are you familiar with the Contributor Covenant Code of Conduct?

Contact Details

contact@katio.net

github-actions[bot] commented 1 year ago

Issue closed and locked due to lack of activity. If you encounter this same issue, please open a new issue and refer to this closed one.