Skip to content

Commit

Permalink
Update tags on fetch/pull
Browse files Browse the repository at this point in the history
  • Loading branch information
dkulp committed Aug 17, 2019
1 parent 7c15940 commit 581e3c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/git_branch
Expand Up @@ -26,7 +26,7 @@ cleanCompiledBinaries
echo "Switching git branch to $1"
if [ "x${FPPDIR}" = "x/opt/fpp" ]
then
cd ${FPPDIR} && $SUDO git clean -df && $SUDO git reset --hard && $SUDO git checkout $1 && $SUDO git pull && $SUDO git submodule sync && $SUDO git submodule update --init
cd ${FPPDIR} && $SUDO git clean -df && $SUDO git reset --hard && $SUDO git checkout $1 && $SUDO git pull && git fetch --tags -f && $SUDO git submodule sync && $SUDO git submodule update --init
else
cd ${FPPDIR} && sudo git clean -df && sudo -u ${FPPUSER} git reset --hard && sudo -u ${FPPUSER} git checkout $1 && sudo -u ${FPPUSER} git pull && sudo -u ${FPPUSER} git submodule sync && sudo git submodule update --init
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/git_fetch
Expand Up @@ -14,7 +14,7 @@ if curl --silent --head https://github.com | grep "Content-Type: text/html; char

if [ "x${FPPDIR}" = "x/opt/fpp" ]
then
cd ${FPPDIR} && $SUDO git fetch && $SUDO git submodule foreach git fetch
cd ${FPPDIR} && $SUDO git fetch && $SUDO git fetch --tags -f && $SUDO git submodule foreach git fetch
else
cd ${FPPDIR} && sudo -u ${FPPUSER} git fetch && sudo -u ${FPPUSER} git submodule foreach git fetch
fi
Expand Down
4 changes: 2 additions & 2 deletions scripts/git_pull
Expand Up @@ -16,9 +16,9 @@ if curl --silent --head https://github.com | grep "Content-Type: text/html; char

if [ "x${FPPDIR}" = "x/opt/fpp" ]
then
cd ${FPPDIR} && $SUDO git pull && $SUDO git fetch --tags && $SUDO git submodule sync && $SUDO git submodule update --init
cd ${FPPDIR} && $SUDO git pull && $SUDO git fetch --tags -f && $SUDO git submodule sync && $SUDO git submodule update --init
else
cd ${FPPDIR} && sudo -u ${FPPUSER} git pull && sudo -u ${FPPUSER} git fetch --tags && sudo -u ${FPPUSER} git submodule sync && sudo -u ${FPPUSER} git submodule update --init
cd ${FPPDIR} && sudo -u ${FPPUSER} git pull && sudo -u ${FPPUSER} git fetch --tags -f && sudo -u ${FPPUSER} git submodule sync && sudo -u ${FPPUSER} git submodule update --init
fi

sudo ${SCRIPTDIR}/upgrade_config
Expand Down

0 comments on commit 581e3c5

Please sign in to comment.