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

auto-build: reversed section match prefix order

Reversed the order of reference prefixes tried when matching a config
section from least significant first to most significant first.
parent 110f79f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ _get_config_section ()
		echo "Finding match for $1 in"
		printf "  %s\n" "${sections[@]}"
	} >&2
	for prefix in '' heads/ tags/ refs/ refs/heads/ refs/tags/; do
	for prefix in refs/tags/ refs/heads/ refs/ heads/ tags/ ''; do
		for sec in "${sections[@]}"; do
			case "$1" in
				$prefix$sec)