Skip to content

Commit b00f91d

Browse files
pks-tgitster
authored andcommitted
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>
1 parent 72b99c5 commit b00f91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

replay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct commit *replay_create_commit(struct repository *repo,
6262
obj = parse_object(repo, &ret);
6363

6464
out:
65-
repo_unuse_commit_buffer(the_repository, based_on, message);
65+
repo_unuse_commit_buffer(repo, based_on, message);
6666
free_commit_extra_headers(extra);
6767
free_commit_list(parents);
6868
strbuf_release(&msg);

0 commit comments

Comments
 (0)