Skip to content
  • Jeff King's avatar
    ident: do not ignore empty config name/email · 94425552
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    When we read user.name and user.email from a config file,
    they go into strbufs. When a caller asks ident_default_name()
    for the value, we fallback to auto-detecting if the strbuf
    is empty.
    
    That means that explicitly setting an empty string in the
    config is identical to not setting it at all. This is
    potentially confusing, as we usually accept a configured
    value as the final value.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    94425552