diff options
Diffstat (limited to 'alias.c')
-rw-r--r-- | alias.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5,7 +5,8 @@ char *alias_lookup(const char *alias) char *v = NULL; struct strbuf key = STRBUF_INIT; strbuf_addf(&key, "alias.%s", alias); - git_config_get_string(key.buf, &v); + if (git_config_key_is_valid(key.buf)) + git_config_get_string(key.buf, &v); strbuf_release(&key); return v; } |