Merge pull request #659 from orbea/clean

libretro-buildbot-recipe.sh: Only clean the correct git directory.
This commit is contained in:
Twinaphex 2017-12-23 07:37:54 +01:00 committed by GitHub
commit 5d7c03d730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -659,12 +659,8 @@ while read line; do
LEIRADEL ) build_libretro_leiradel_makefile $NAME $DIR $SUBDIR $MAKEFILE ${PLATFORM} "${ARGS}" ;;
* ) : ;;
esac
BUILD_DIR="${BASE_DIR}/${DIR}"
[ "${SUBDIR}" != . ] && BUILD_DIR="${BUILD_DIR}/${SUBDIR}"
if [ "$(realpath .)" = "${BUILD_DIR}" ]; then
echo "Cleaning repo state after build $URL..."
git clean -xdf
fi
echo "Cleaning repo state after build $URL..."
git --work-tree="${BASE_DIR}/${DIR}" --git-dir="${BASE_DIR}/${DIR}/.git" clean -xdf
else
echo "buildbot job: building $NAME up-to-date"
fi