diff options
Diffstat (limited to 'pager.c')
-rw-r--r-- | pager.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -149,7 +149,8 @@ int check_pager_config(const char *cmd) struct strbuf key = STRBUF_INIT; const char *value = NULL; strbuf_addf(&key, "pager.%s", cmd); - if (!git_config_get_value(key.buf, &value)) { + if (git_config_key_is_valid(key.buf) && + !git_config_get_value(key.buf, &value)) { int b = git_config_maybe_bool(key.buf, value); if (b >= 0) want = b; |