config: require lowercase for branch.*.autosetupmerge

Although we only documented that branch.*.autosetupmerge would accept "always" as a value, the actual implementation would accept any combination of upper- or lower-case. Fix this to be consistent with documentation and with other values of this config variable. Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Josh Steadmon committed Dec 20, 2021 at 19:30 UTC 44f14a9d24cd9f04a0a789e58968d52d44d7f332
1 file changed +1 -1
config.c
+1 -1
@@ -1556,7 +1556,7 @@ static int git_default_i18n_config(const char *var, const char *value)
1556 static int git_default_branch_config(const char *var, const char *value)
1557 {
1558 if (!strcmp(var, "branch.autosetupmerge")) {
1559 - if (value && !strcasecmp(value, "always")) {
1559 + if (value && !strcmp(value, "always")) {
1560 git_branch_track = BRANCH_TRACK_ALWAYS;
1561 return 0;
1562 } else if (value && !strcmp(value, "inherit")) {