]> git.ipfire.org Git - thirdparty/git.git/commit
replay: stop using `the_repository`
authorPatrick Steinhardt <ps@pks.im>
Mon, 27 Oct 2025 11:33:51 +0000 (12:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Nov 2025 21:47:45 +0000 (13:47 -0800)
commitb00f91d2f47bdd16265f05d2249a5c205fcef768
tree951ffa97d75049d7a4b6ee9567cbf75490637871
parent72b99c5448c0cc9cabbfaab087d360086abf6d30
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 <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
replay.c