zinit icon indicating copy to clipboard operation
zinit copied to clipboard

[bug]: missing omz git plugin command

Open aleksanderwalczuk opened this issue 9 months ago • 1 comments

What happened?

When I've added the oh-my-zsh git plugin as a snippet most of the commands work, but gpsup fails with following error:

zsh: command not found: git_current_branch

I've initiated the plugin as following:

zinit snippet OMZP::git/git.plugin.zsh

Steps to reproduce

  1. Enable git plugin in .zshrc
  2. Create a new branch in any repo and try to push it to the origin with gpsup
  3. See the error

Relevant output

zsh: command not found: git_current_branch
fatal: The current branch sample-branch has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin sample-branch

To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.

Screenshots and recordings

No response

Operating System & Version

OS: darwin23.0 | Vendor: apple | Machine: x86_64 | CPU: arm64 | Processor: arm | Hardware: arm64

Zsh version

zsh 5.9 (x86_64-apple-darwin23.0)

Terminal emulator

xterm-256color

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

aleksanderwalczuk avatar Mar 10 '25 19:03 aleksanderwalczuk

see #504

Zevan770 avatar Apr 21 '25 00:04 Zevan770