From: Patrick Steinhardt Date: Wed, 3 Dec 2025 10:48:30 +0000 (+0100) Subject: replay: stop using `the_repository` X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bad10a2249c9c76a4cff5f4d448f24ebd57b4a21;p=thirdparty%2Fgit.git replay: stop using `the_repository` In `create_commit()` we're using `the_repository` even though we already have a repository passed to use as an argument. Fix this. Note that we still cannot get rid of `USE_THE_REPOSITORY_VARIABLE`. This is because we use `DEFAULT_ABBREV and `get_commit_output_encoding()`, both of which are stored as global variables that can be modified via the Git configuration. Signed-off-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- diff --git a/replay.c b/replay.c index fb906e9b51..13983dbc56 100644 --- a/replay.c +++ b/replay.c @@ -62,7 +62,7 @@ struct commit *replay_create_commit(struct repository *repo, obj = parse_object(repo, &ret); out: - repo_unuse_commit_buffer(the_repository, based_on, message); + repo_unuse_commit_buffer(repo, based_on, message); free_commit_extra_headers(extra); free_commit_list(parents); strbuf_release(&msg);