Commit 722a1370 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

auto-build: put git clean & reset after checkout

This ensures that in empty build directories there is a working tree
to be cleaned when the commands are called.
parent dd5d8aea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -200,10 +200,10 @@ build ()
	cd "$dir"
	(
		unset GIT_DIR
		git clean -f -d -q -x
		git reset --hard
		git fetch origin
		git checkout "${ref/heads/remotes/origin}"
		git clean -f -d -q -x
		git reset --hard
	) >&2

	# get the settings for this build