From a1e6736cedc6ecdb0cb62be48ae5eaed2fea8970 Mon Sep 17 00:00:00 2001 From: gmarik Date: Mon, 9 May 2011 23:22:15 -0500 Subject: [PATCH] prepend git branch name to test bundle_dir --- test/vimrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/vimrc b/test/vimrc index 8644f6a..5efeb42 100644 --- a/test/vimrc +++ b/test/vimrc @@ -5,9 +5,11 @@ syntax on silent exec 'e '.expand('') -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'