Commit ea9ca511 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

auto-build: checkout branch rather than detached head

parent 905278fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -210,10 +210,10 @@ build ()
	(
		unset GIT_DIR
		git fetch origin
		git checkout "${ref/heads/remotes/origin}"
		git checkout -B "${ref/heads\//}" "${ref/heads/remotes/origin}"
		git clean -f -d -q -x
		git reset --hard
	) >&2
	)

	# get the settings for this build
	profile=`config "$confsec" profile || determine_profile`