Skip to content
  • Jeff King's avatar
    mailmap: do not resolve blobs in a non-repository · 5735dc5a
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The mailmap code may be triggered outside of a repository by
    git-shortlog. There is no point in looking up a name like
    "HEAD:.mailmap" there; without a repository, we have no
    refs.
    
    This is unlikely to matter much in practice for the current
    code, as we would simply fail to find the ref. But as the
    refs code learns about new backends, this is more important;
    without a repository, we do not even know which backend to
    look at.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    5735dc5a