libretro-buildbot-recipe.sh: Check if the HEAD commit is new or not.
Newer git versions now report 'Already up to date.' instead of 'Already up-to-date' so we need a more robust solution.
This commit is contained in:
parent
2f56bbc8c7
commit
e3a38f76e1
|
@ -812,10 +812,10 @@ while read line; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "pulling changes from repo $URL..."
|
echo "pulling changes from repo $URL..."
|
||||||
OUT="$(git pull)"
|
HEAD="$(git rev-parse HEAD)"
|
||||||
echo "$OUT"
|
git pull
|
||||||
|
|
||||||
if [[ $OUT == *"Already up-to-date"* ]] && [ "${BUILD}" != "YES" ]; then
|
if [ "$HEAD" = "$(git rev-parse HEAD)" ] && [ "${BUILD}" != "YES" ]; then
|
||||||
BUILD="NO"
|
BUILD="NO"
|
||||||
else
|
else
|
||||||
echo "resetting repo state $URL..."
|
echo "resetting repo state $URL..."
|
||||||
|
@ -944,12 +944,12 @@ buildbot_pull(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "pulling changes from repo $URL... "
|
echo "pulling changes from repo $URL... "
|
||||||
OUT=`git pull`
|
HEAD="$(git rev-parse HEAD)"
|
||||||
echo $OUT
|
git pull
|
||||||
|
|
||||||
if [ "${TYPE}" = "PROJECT" ]; then
|
if [ "${TYPE}" = "PROJECT" ]; then
|
||||||
RADIR=$DIR
|
RADIR=$DIR
|
||||||
if [[ $OUT == *"Already up-to-date"* ]] && [ ! "${BUILD}" = "YES" ]; then
|
if [ "$HEAD" = "$(git rev-parse HEAD)" ] && [ "${BUILD}" != "YES" ]; then
|
||||||
BUILD="NO"
|
BUILD="NO"
|
||||||
else
|
else
|
||||||
echo "resetting repo state $URL... "
|
echo "resetting repo state $URL... "
|
||||||
|
|
Loading…
Reference in New Issue