From 1deac65ccffead17553d8cb72e0218afc69febee Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Fri, 15 Feb 2013 18:34:28 +0000 Subject: [PATCH] CHANGED: Added checkout of revision --- autoload/vundle/installer.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index c2685df..6a86b16 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -225,6 +225,13 @@ func! s:sync(bang, bundle) abort call s:run_and_log(a:bundle, cmd) + if has_rev + let cmd = 'cd '.shellescape(a:bundle.path()).' && git checkout '.a:bundle.rev + let cmd = g:shellesc_cd(cmd) + + call s:run_and_log(a:bundle, cmd) + endif + if 0 != v:shell_error return 'error' end