Permalink
Browse files

Remote update before checkout

  • Loading branch information...
1 parent 2ac9f59 commit 1157362a4630317441715f263b3e0d350cfa044b Justin Clift committed Jan 22, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 bin/rbenv-installer
View
@@ -15,6 +15,7 @@ rbenv_git_init(){
if [ ! -d '.git' ]; then
git init
git remote add -t $BRANCH origin https://github.com/sstephenson/rbenv.git
+ git remote update origin
git checkout $BRANCH
fi
}
@@ -38,6 +39,7 @@ if [ ! -d "$RBENV_PLUGIN_ROOT" ] ; then
cd $RBENV_PLUGIN_ROOT
git init
git remote add -t $BRANCH origin https://github.com/$KEY/$VALUE.git
+ git remote update origin
git checkout $BRANCH
else
cd $RBENV_PLUGIN_ROOT

0 comments on commit 1157362

Please sign in to comment.