File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ _git_conf_get__cb__section_glob () (
105105 while read -r line; do
106106 opt=" $( echo " $line " | cut -d' ' -f1) "
107107 # shellcheck disable=SC2254
108- case " $gc_prog_name .glob: $file .$var " in
108+ case " $gc_prog_name .$file .$var " in
109109 $opt ) val=" $( echo " $line " | cut -d' ' -f2-) " ;;
110110 esac
111111 done << EOF
112- $( git config $conf --get-regexp " $gc_prog_name " ' \.glob: ' )
112+ $( git config $conf --get-regexp " $gc_prog_name " ' \.[^=].*\. ' " $var " ' $ ' )
113113EOF
114114
115115 echo " $val "
@@ -129,14 +129,14 @@ git_conf_get__ft_formatter () (
129129
130130 debug " args =" " $@ "
131131
132- fmt=" $( git_conf_get__call_ _git_conf_get__cb__section_glob " $file " " formatter-- $ft " ) "
132+ fmt=" $( git_conf_get__call_ _git_conf_get__cb__section_glob " $file " " formatter= $ft " ) "
133133
134134 if [ -z " $fmt " ]; then
135- fmt=" $( git_conf_get__call_ _git_conf_get__cb__simple " $gc_prog_name .ft: $ft .formatter" ) "
135+ fmt=" $( git_conf_get__call_ _git_conf_get__cb__simple " $gc_prog_name .= $ft .formatter" ) "
136136 fi
137137
138138 if [ -z " $fmt " ]; then
139- fmt=" $( git_conf_get__call_ _git_conf_get__cb__simple " $gc_prog_name .formatter-- $ft " ) "
139+ fmt=" $( git_conf_get__call_ _git_conf_get__cb__simple " $gc_prog_name .formatter= $ft " ) "
140140 fi
141141
142142 echo " $fmt "
@@ -188,7 +188,7 @@ git_conf_get () (
188188 val=" $( git_conf_get__ft_formatter " $file " " $ft " ) "
189189 ;;
190190 * )
191- val=" $( git_conf_get__call_ _git_conf_get__cb__simple " $gc_prog_name .ft: $ft .$var " ) "
191+ val=" $( git_conf_get__call_ _git_conf_get__cb__simple " $gc_prog_name .= $ft .$var " ) "
192192 ;;
193193 esac
194194 fi
You can’t perform that action at this time.
0 commit comments