Allow overriding name of remote

pull/694/head
Travis Swicegood 2016-03-25 18:02:58 -05:00
parent f3f4f0a8f9
commit 1e826eefb4
1 changed files with 4 additions and 1 deletions

View File

@ -127,8 +127,11 @@ _bash-it_update() {
_group 'lib' _group 'lib'
cd "${BASH_IT}" cd "${BASH_IT}"
if [ -z $BASH_IT_REMOTE ]; then
BASH_IT_REMOTE="origin"
fi
git fetch &> /dev/null git fetch &> /dev/null
local status="$(git rev-list master..origin/master 2> /dev/null)" local status="$(git rev-list master..${BASH_IT_REMOTE}/master 2> /dev/null)"
if [[ -n "${status}" ]]; then if [[ -n "${status}" ]]; then
git pull --rebase &> /dev/null git pull --rebase &> /dev/null
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then