Loading hook-scripts/post-receive/auto-build +11 −9 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ _normalise_ref () _get_config_section () { local sections sec local sections prefix sec IFS=$'\n' sections=( `git config --list \ | grep -e '^auto-build' \ | sed -e 's/=.*//' -e 's/\.[^.]*$//' -e 's/^auto-build\.\?//' \ Loading @@ -89,15 +89,17 @@ _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 sec in "${sections[@]}"; do case "$1" in $sec) $prefix$sec) echo "Section matched: $sec" >&2 echo "$sec" return 0 ;; esac done done echo "No matching section found" >&2 return 1 } Loading Loading
hook-scripts/post-receive/auto-build +11 −9 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ _normalise_ref () _get_config_section () { local sections sec local sections prefix sec IFS=$'\n' sections=( `git config --list \ | grep -e '^auto-build' \ | sed -e 's/=.*//' -e 's/\.[^.]*$//' -e 's/^auto-build\.\?//' \ Loading @@ -89,15 +89,17 @@ _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 sec in "${sections[@]}"; do case "$1" in $sec) $prefix$sec) echo "Section matched: $sec" >&2 echo "$sec" return 0 ;; esac done done echo "No matching section found" >&2 return 1 } Loading