]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config: require lowercase for branch.*.autosetupmerge
authorJosh Steadmon <steadmon@google.com>
Tue, 21 Dec 2021 03:30:24 +0000 (19:30 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Dec 2021 06:40:21 +0000 (22:40 -0800)
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>
config.c

index 532732fc3355250164e5e841d0bf73d7f8a34375..42940154d0f555e99f41d6835bcaf0a30773b31c 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1556,7 +1556,7 @@ static int git_default_i18n_config(const char *var, const char *value)
 static int git_default_branch_config(const char *var, const char *value)
 {
        if (!strcmp(var, "branch.autosetupmerge")) {
-               if (value && !strcasecmp(value, "always")) {
+               if (value && !strcmp(value, "always")) {
                        git_branch_track = BRANCH_TRACK_ALWAYS;
                        return 0;
                } else if (value && !strcmp(value, "inherit")) {