From 813fcd42cca2b9bef9e88b1c8c7f8fcb541f3346 Mon Sep 17 00:00:00 2001
From: orbea <ovariegata@yahoo.com>
Date: Wed, 29 Nov 2017 18:03:38 -0800
Subject: [PATCH] libretro-buildbot-recipe.sh: Clean cores after building them.

---
 libretro-buildbot-recipe.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh
index ab389bc1..1f1acb07 100755
--- a/libretro-buildbot-recipe.sh
+++ b/libretro-buildbot-recipe.sh
@@ -885,6 +885,8 @@ while read line; do
 				HIGAN )         build_libretro_higan $NAME $DIR $SUBDIR $MAKEFILE $PLATFORM ${FORMAT_COMPILER_TARGET} ${CXX11} "${ARGS}" ;;
 				* )             :                                                                                                        ;;
 			esac
+			echo "Cleaning repo state after build $URL..."
+			git clean -xdf
 		else
 			echo "buildbot job: building $NAME up-to-date"
 		fi