diff options
author | Jeff King <peff@peff.net> | 2016-03-05 17:13:29 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-03-06 17:19:11 -0800 |
commit | 5735dc5a0df5de12b28237ff2c41df6df5f67b81 (patch) | |
tree | 3cbcf06ddf9bd6f0d8e3979aac1640f5b326c040 /strbuf.c | |
parent | remote: don't resolve HEAD in non-repository (diff) | |
download | tgif-5735dc5a0df5de12b28237ff2c41df6df5f67b81.tar.xz |
mailmap: do not resolve blobs in a non-repository
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: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.c')
0 files changed, 0 insertions, 0 deletions