mailinfo: stop using the_repository
Stop using `the_repository` in the "mailinfo" subsystem by passing in a repository when setting up the mailinfo structure. Adjust callers accordingly by using `the_repository`. While there may be some callers that have a repository available in their context, this trivial conversion allows for easier verification and bubbles up the use of `the_repository` by one level. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
b4c476c43a
commit
71e5afee8b
@ -1211,7 +1211,7 @@ static int parse_mail(struct am_state *state, const char *mail)
|
||||
int ret = 0;
|
||||
struct mailinfo mi;
|
||||
|
||||
setup_mailinfo(&mi);
|
||||
setup_mailinfo(the_repository, &mi);
|
||||
|
||||
if (state->utf8)
|
||||
mi.metainfo_charset = get_commit_output_encoding();
|
||||
|
Reference in New Issue
Block a user