TkgThingy: Make sure we are on the master branch before pulling
This prevents merging to a detached head case
This commit is contained in:
@@ -139,7 +139,7 @@ _main_loop() {
|
|||||||
#git submodule update --remote
|
#git submodule update --remote
|
||||||
for _tkg_tools in */; do
|
for _tkg_tools in */; do
|
||||||
if [ "$_tkg_tools" != ".git" ]; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
elif [ "$_choice" == "3" ]; then
|
elif [ "$_choice" == "3" ]; then
|
||||||
|
Reference in New Issue
Block a user