zplug: [zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/git)

Problem Summary

[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/git)

in my .zshrc I have zplug "plugins/git", from:oh-my-zsh

The problem started when upgrading to 2.3.4

System Information

  • uname -a
Darwin Matthews-MBP 16.3.0 Darwin Kernel Version 16.3.0: Tue Nov 29 12:39:07 PST 2016; root:xnu-3789.31.2~11/RELEASE_X86_64 x86_64
  • zsh --version
zsh 5.2 (x86_64-apple-darwin16.0.0)
  • zplug --version
2.3.4

Minimal zshrc

Create a minimal reproducing set of configurations for this issue. Please remove all unnecessary parts!

source ~/.zplug/init.zsh

zplug "robbyrussell/oh-my-zsh"
zplug "plugins/git", from:oh-my-zsh

zplug load --verbose

Steps to Reproduce

  1. zplug clear
  2. open a new terminal instance, error appears during loading

Extra

The following packages also trigger similar errors

[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/git)
[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/sublime)
[zplug] ERROR: pathspec 'master' (at tag) did not match (robbyrussell/oh-my-zsh)
[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/command-not-found)
[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/autoenv)
[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/colorize)
[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/aws)
[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/node)
[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/brew)
[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/osx)
[zplug] ERROR: pathspec 'master' (at tag) did not match (plugins/composer)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 20 (9 by maintainers)

Most upvoted comments

This happens when zplug tries to iterate on plugins of the same project (such as prezto (which was workarounded) or omz), the error itself is:

fatal: Unable to create '~/.zplug/repos/<package>/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
[zplug] ERROR: pathspec 'master' (at tag) did not match (<plugin>)