mirror of
https://github.com/libretro/libretro-super
synced 2025-01-27 15:35:16 +00:00
Merge pull request #659 from orbea/clean
libretro-buildbot-recipe.sh: Only clean the correct git directory.
This commit is contained in:
commit
5d7c03d730
@ -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
|
||||
git --work-tree="${BASE_DIR}/${DIR}" --git-dir="${BASE_DIR}/${DIR}/.git" clean -xdf
|
||||
else
|
||||
echo "buildbot job: building $NAME up-to-date"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user