TkgThingy: Make sure we are on the master branch before pulling

This prevents merging to a detached head case
frogging-family
Tk-Glitch 2020-09-03 13:16:36 +07:00
parent 350107f9ea
commit 11a031af38
1 changed files with 1 additions and 1 deletions

@ -139,7 +139,7 @@ _main_loop() {
#git submodule update --remote
for _tkg_tools in */; do
if [ "$_tkg_tools" != ".git" ]; then
( cd "$_tkg_tools" && git config pull.rebase false && git pull origin master )
( cd "$_tkg_tools" && git config pull.rebase false && git checkout master && git pull origin master )
fi
done
elif [ "$_choice" == "3" ]; then