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
Update error for plugins with the 'rev' indicator #310
Comments
No. I tested it. But it will print errors.
I think it is better... |
Agree, option |
Fixed the problem by C. |
Mmm I'm having a similar problem. With the following minimal vimrc: set nocompatible
let $ONEDRIVE_HOME = expand('C:/OD/Users/Pedro')
let $DOTVIM = expand('$ONEDRIVE_HOME/vimfiles')
set runtimepath+=$DOTVIM/bundle/neobundle/
call neobundle#begin(expand('$DOTVIM/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim', {'name' : 'neobundle'}
NeoBundle 'bling/vim-airline', {'name' : 'airline'}
call neobundle#end()
filetype plugin indent on
NeoBundleCheck
set laststatus=2
set noshowmode If I run
If i install |
I think you checkouted the commit in the repository. |
@Shougo I don't know why this happened (I never checkouted a commit) but doing |
I am having this problem with |
Problem
Plugins with the
rev
indicator get an error on update:The reason is that plugins with
rev
are being checked-out as "detached" branches which are read-only, git-pull is not permitted on a detached branch.Expect
I would expect to see no errors when updating my plugins.
Reproduce
Minimal
.vimrc
:vim
and let NeoBundle install plugins.:NeoBundleUpdate!
(force) to update plugins.:message
.Notice the errors for plugins with the
rev
indicator.Ideas
I can think of some solutions:
Option A: Use real branch
When a plugin has a
rev
, do not detach, checkout with a real branch e.g.git checkout -b rev 63f0392
Option B: Check current revision
Before pulling, if (a) plugin has
rev
AND (b) already cloned, verify current revision and cancel pulling if current revision ==rev
indicator.Option C: Checkout master
Before pulling, if (a) plugin has
rev
, AND (b) already cloned, checkout the local branchmaster
. (git checkout master
)Hope this helps..
The text was updated successfully, but these errors were encountered: