-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(bugfix): zinit self-update uses current branch #173
Conversation
96081a4
to
f0f05d6
Compare
~ bugfix/self-update-can-use-any-branch
ᐳ zi self-update
[self-update] fetching changes for bugfix/self-update-can-use-any-branch
From https://github.com/zdharma-continuum/zinit
* branch bugfix/self-update-can-use-any-branch -> FETCH_HEAD
Already up to date.
[self-update] Compiling Zinit (zcompile)…
[self-update] Reloading Zinit for the current session…
~ bugfix/self-update-can-use-any-branch
ᐳ |
a243057
to
6f671a4
Compare
Can you regenerate the docs to get the tests to pass? |
532197d
to
d5dc60c
Compare
Fix bug in Zinit `self-update` command that used the `main` branch instead of using current branch. Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
5f03944
to
23c47e1
Compare
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
builtin cd -q "$ZINIT[BIN_DIR]" \ | ||
&& +zinit-message -n "{pre}[self-update]{msg2} fetching latest changes from {msg2}$current_branch$nl{cmd}" \ | ||
&& command git fetch --quiet \ | ||
&& lines=( ${(f)"$(command git log --color --date=short --pretty=format:'%Cgreen%cd %h %Creset%s %Cred%d%Creset || %b' ..FETCH_HEAD)"} ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line removed --no-pager
option, so #177 problem reoccurred. Can this be reverted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there is a nother bug where log output should be on a newline. Preparing PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still it seems that there is no --no-pager
in zinit self-update
command. When it will be added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please open a new issue instead of commenting on a two year old PR.
🎉 This PR is included in version 3.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
fixes bug where zinit self-update was hard-coded to use main, even if it was on a different branch.
Signed-off-by: Vladislav Doster mvdoster@gmail.com