-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
failed to checkout specific commit of plugin #151
Comments
I think this is caused by the fact that the cloning/install of the plugin is done with depth 1. So the commit you are targeting is older and can't be switched to. I'd suggest that the clone doesn't use depth if a commit hash is passed (edit: or unshallow afterwards if needed) |
* fix: unshallow clone for plugin checkout fixes #151 * refactor: address PR comments
* docs: make it more obvious the image is a video link * feat: update README (#150) * feat: update README * fix: update README with the new video thumbnail * fix: update README with updated uninstall text * fix: unshallow clone for plugin checkout (#153) * fix: unshallow clone for plugin checkout fixes #151 * refactor: address PR comments --------- Co-authored-by: Matthew Winter <33818+wintermi@users.noreply.github.com> Co-authored-by: Christian Chiarulli <chris.machine@pm.me> Co-authored-by: António Peixe <antonio.icr.peixe@gmail.com>
Thanks for the quick update @AntPeixe, here's the output of |
By checking out a commit in particular the state of the local clone becomes a detached head. It should match the exact commit you select. Also it actually wouldn't make sense to update that plugin if you specified the commit. In terms of functionality it should all be good. However, if you find anything please open another issue. |
Describe the bug
I tried the instructions of README for installing specific commit, but ultimately failed. I even tried to the full SHA but still doesn't work
Steps to reproduce
example: install v0.5 of this plugin zsh-nix-shell
Expected behavior
install normally
Screenshots and recordings
OS / Linux distribution
Linux EndeavourOS
Zsh version
5.9
Zap version
Version: release-v1/1.1.3
Terminal emulator
Wezterm
If using WSL on Windows, which version of WSL
None
Additional context
No response
The text was updated successfully, but these errors were encountered: