Commit 1600e768 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

auto-build: quoted config sections

Config section names (which are ref patterns) quoted to prevent
matching file paths.
parent 71155dba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -82,11 +82,11 @@ _normalise_ref ()
_get_config_section ()
{
	local sections prefix sec
	IFS=$'\n' sections=( `git config --list \
	IFS=$'\n' sections=( "`git config --list \
		| grep -e '^auto-build' \
		| sed -e 's/=.*//' -e 's/\.[^.]*$//' -e 's/^auto-build\.\?//' \
		| sort -ur
		` )
		`" )
	{
		echo "Finding match for $1 in"
		printf "  %s\n" "${sections[@]}"