{"action":"created","issue":{"url":"https://api.github.com/repos/junegunn/vim-plug/issues/462","repository_url":"https://api.github.com/repos/junegunn/vim-plug","labels_url":"https://api.github.com/repos/junegunn/vim-plug/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/junegunn/vim-plug/issues/462/comments","events_url":"https://api.github.com/repos/junegunn/vim-plug/issues/462/events","html_url":"https://github.com/junegunn/vim-plug/issues/462","id":145412574,"number":462,"title":"PlugUpdate fails when there is a forced update to plugin","user":{"login":"phanimahesh","id":1690608,"avatar_url":"https://avatars.githubusercontent.com/u/1690608?v=3","gravatar_id":"","url":"https://api.github.com/users/phanimahesh","html_url":"https://github.com/phanimahesh","followers_url":"https://api.github.com/users/phanimahesh/followers","following_url":"https://api.github.com/users/phanimahesh/following{/other_user}","gists_url":"https://api.github.com/users/phanimahesh/gists{/gist_id}","starred_url":"https://api.github.com/users/phanimahesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanimahesh/subscriptions","organizations_url":"https://api.github.com/users/phanimahesh/orgs","repos_url":"https://api.github.com/users/phanimahesh/repos","events_url":"https://api.github.com/users/phanimahesh/events{/privacy}","received_events_url":"https://api.github.com/users/phanimahesh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-02T20:09:42Z","updated_at":"2016-04-05T13:45:47Z","closed_at":null,"body":"\r\nTitle 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.\r\n\r\nAllow PlugUpdate! to do a non-fast-forward update by simply checking out the new HEAD.\r\n\r\nI tested only on neovim, but should be the same behaviour for all.\r\n\r\n------------------------------\r\n\r\n<!-- Put the contents of `:version` below -->\r\n```\r\n:version\r\nNVIM v0.1.3-348-ge7a9c00\r\nBuild type: Dev\r\nCompilation: /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\r\n-Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim20160315-25348-1k9rfzd/build/config -I/tmp/neovim20160315-25348\r\n-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\r\n/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\r\nild/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\r\nrc/nvim/auto -I/tmp/neovim20160315-25348-1k9rfzd/build/include\r\nCompiled by phanimahesh@dev.phanimahesh.me\r\n\r\nOptional features included (+) or not (-): +acl   +iconv    +jemalloc\r\nFor differences from Vim, see :help vim-differences\r\n\r\n   system vimrc file: \"$VIM/sysinit.vim\"\r\n  fall-back for $VIM: \"/usr/local/Cellar/neovim/HEAD/share/nvim\"\r\n```\r\n\r\n<!-- Check all that apply. -->\r\n- Type:\r\n    - [x] Bug\r\n    - [x] Enhancement\r\n    - [x] Feature Request\r\n    - [ ] Question\r\n- OS:\r\n    - [x] All/Other\r\n    - [ ] Linux\r\n    - [ ] OS X\r\n    - [ ] Windows\r\n- Vim:\r\n    - [ ] Terminal Vim\r\n    - [ ] GVim\r\n    - [x] Neovim\r\n"},"comment":{"url":"https://api.github.com/repos/junegunn/vim-plug/issues/comments/205812036","html_url":"https://github.com/junegunn/vim-plug/issues/462#issuecomment-205812036","issue_url":"https://api.github.com/repos/junegunn/vim-plug/issues/462","id":205812036,"user":{"login":"phanimahesh","id":1690608,"avatar_url":"https://avatars.githubusercontent.com/u/1690608?v=3","gravatar_id":"","url":"https://api.github.com/users/phanimahesh","html_url":"https://github.com/phanimahesh","followers_url":"https://api.github.com/users/phanimahesh/followers","following_url":"https://api.github.com/users/phanimahesh/following{/other_user}","gists_url":"https://api.github.com/users/phanimahesh/gists{/gist_id}","starred_url":"https://api.github.com/users/phanimahesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanimahesh/subscriptions","organizations_url":"https://api.github.com/users/phanimahesh/orgs","repos_url":"https://api.github.com/users/phanimahesh/repos","events_url":"https://api.github.com/users/phanimahesh/events{/privacy}","received_events_url":"https://api.github.com/users/phanimahesh/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T13:45:47Z","updated_at":"2016-04-05T13:45:47Z","body":"Given that tags and branches are extremely lightweight in git (They are just a file named the same as branch and having the sha of commit they point to), I like this idea. Instead of polluting the global namespace (though not many directly use their plugin dirs for development), we can use `vim-plug-backups/<date-time>` as the branch/tag name."}}