update.sh should chechout default branch
This commit is contained in:
parent
1040a1e133
commit
7af0ebf55d
@ -26,7 +26,8 @@ function look_for_update() {
|
|||||||
echo "Checkout master for $1"
|
echo "Checkout master for $1"
|
||||||
git submodule update --init -- "$1"
|
git submodule update --init -- "$1"
|
||||||
cd "$1"
|
cd "$1"
|
||||||
git checkout master
|
defaultbranch=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
|
||||||
|
git checkout "$defaultbranch"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user