Skip to content

PlugUpdate fails when there is a forced update to plugin #462

Closed
@phanimahesh

Description

@phanimahesh

Title says it all. I discovered that when one of my plugins had a force update, nothing short of messing directly with the plugin directory allows me to update the plugin.

Allow PlugUpdate! to do a non-fast-forward update by simply checking out the new HEAD.

I tested only on neovim, but should be the same behaviour for all.


:version
NVIM v0.1.3-348-ge7a9c00
Build type: Dev
Compilation: /usr/local/Library/ENV/4.3/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99
-Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim20160315-25348-1k9rfzd/build/config -I/tmp/neovim20160315-25348
-1k9rfzd/src -I/tmp/neovim20160315-25348-1k9rfzd/deps-build/usr/include -I/tmp/neovim20160315-25348-1k9rfzd/deps-build/usr/include -I/tmp/neovim20160315-25348-1k9rfzd/deps-build/usr
/include/luajit-2.0 -I/tmp/neovim20160315-25348-1k9rfzd/deps-build/usr/include -I/tmp/neovim20160315-25348-1k9rfzd/deps-build/usr/include -I/tmp/neovim20160315-25348-1k9rfzd/deps-bu
ild/usr/include -I/tmp/neovim20160315-25348-1k9rfzd/deps-build/usr/include -I/usr/local/opt/gettext/include -I/usr/include -I/usr/include -I/tmp/neovim20160315-25348-1k9rfzd/build/s
rc/nvim/auto -I/tmp/neovim20160315-25348-1k9rfzd/build/include
Compiled by [email protected]

Optional features included (+) or not (-): +acl   +iconv    +jemalloc
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD/share/nvim"
  • Type:
    • Bug
    • Enhancement
    • Feature Request
    • Question
  • OS:
    • All/Other
    • Linux
    • OS X
    • Windows
  • Vim:
    • Terminal Vim
    • GVim
    • Neovim

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions