mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
tag: support arbitrary repositories in parse_tag()
Allow callers of parse_tag() pass in the repository to use. Let most of
them pass in the_repository to get the same result as before. One of
them has stopped using the_repository in ef9b0370da (sha1-name.c: store
and use repo in struct disambiguate_state, 2019-04-16); let it pass in
its stored repository.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
154717b3b0
commit
b6e4cc8c32
@@ -449,7 +449,7 @@ static int show_ambiguous_object(const struct object_id *oid, void *data)
|
||||
} else if (type == OBJ_TAG) {
|
||||
struct tag *tag = lookup_tag(ds->repo, oid);
|
||||
|
||||
if (!parse_tag(tag) && tag->tag) {
|
||||
if (!parse_tag(ds->repo, tag) && tag->tag) {
|
||||
/*
|
||||
* TRANSLATORS: This is a line of ambiguous
|
||||
* tag object output. E.g.:
|
||||
|
||||
Reference in New Issue
Block a user