From b6e4cc8c32850315323961659e553d1d14591f7f Mon Sep 17 00:00:00 2001 From: René Scharfe Date: Sun, 28 Dec 2025 19:10:50 +0100 Subject: tag: support arbitrary repositories in parse_tag() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- walker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'walker.c') diff --git a/walker.c b/walker.c index 409b646578..2891563b03 100644 --- a/walker.c +++ b/walker.c @@ -115,7 +115,7 @@ static int process_commit(struct walker *walker, struct commit *commit) static int process_tag(struct walker *walker, struct tag *tag) { - if (parse_tag(tag)) + if (parse_tag(the_repository, tag)) return -1; return process(walker, tag->tagged); } -- cgit v1.3