]> git.ipfire.org Git - thirdparty/git.git/blobdiff - notes-utils.c
Merge branch 'en/header-cleanup' into maint-2.43
[thirdparty/git.git] / notes-utils.c
index 08e5dbc607302bfef2d91cc188b2f6a4d5972bc1..6197a5a4556400603ed7e669d5cccb0db4089e21 100644 (file)
@@ -111,6 +111,8 @@ static int notes_rewrite_config(const char *k, const char *v,
                }
                return 0;
        } else if (!c->refs_from_env && !strcmp(k, "notes.rewriteref")) {
+               if (!v)
+                       return config_error_nonbool(k);
                /* note that a refs/ prefix is implied in the
                 * underlying for_each_glob_ref */
                if (starts_with(v, "refs/notes/"))