Browse Source

prepend git branch name to test bundle_dir

events
gmarik 15 years ago
parent
commit
a1e6736ced
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      test/vimrc

+ 6
- 4
test/vimrc View File

@ -5,9 +5,11 @@ syntax on
silent exec 'e '.expand('<sfile>')
let root = '/tmp/vundle_bundles/'
if !isdirectory(expand(root))
exec '!git clone http://github.com/gmarik/vundle.git '.root.'/vundle'
let branch = split(filter(split(system('git branch'),'\n'),'v:val[0]=="*"')[0],'\s\+')[1]
let root = '/tmp/vundle_bundles_'.branch
if !isdirectory(expand(root.'/vundle'))
exec '!git clone -b '.branch.' http://github.com/gmarik/vundle.git '.root.'/vundle'
endif
filetype off
@ -16,7 +18,7 @@ runtime macros/matchit.vim
exec 'set rtp+='.root.'/vundle'
call vundle#rc('/tmp/vundle_bundles')
call vundle#rc(root)
" Vundle manages Vunlde
Bundle 'gmarik/vundle'


Loading…
Cancel
Save