Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added the branch via bash variable to the git pull command when updat…

…ing.
  • Loading branch information...
commit 455dc0a8cdbbfefd2e6529361539444f1533cde9 1 parent 18ce939
@rraub rraub authored rraub committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 bootstrap.sh
View
5 bootstrap.sh
@@ -26,14 +26,15 @@ today=`date +%Y%m%d`
for i in $HOME/.vim $HOME/.vimrc $HOME/.gvimrc; do [ -e $i ] && [ ! -L $i ] && mv $i $i.$today; done
endpath="$( cd "$( dirname "$0" )" && pwd)"
+branch="3.0"
if [ ! -e $endpath/.git ]; then
endpath="$HOME/.spf13-vim-3"
echo "cloning spf13-vim"
- git clone --recursive -b 3.0 http://github.com/spf13/spf13-vim.git $endpath
+ git clone --recursive -b $branch http://github.com/spf13/spf13-vim.git $endpath
else
echo "updating spf13-vim"
- cd $endpath && git pull
+ cd $endpath && git pull origin $branch
fi
Please sign in to comment.
Something went wrong with that request. Please try again.