From: Junio C Hamano Date: Tue, 24 Sep 2024 18:35:25 GMT Subject: Re: [PATCH 4/4] archive: remove the_repository global variable Message-ID: In-Reply-To: "John Cai via GitGitGadget" writes: > int cmd_archive(int argc, > const char **argv, > const char *prefix, > - struct repository *repo UNUSED) > + struct repository *repo) > { > const char *exec = "git-upload-archive"; > char *output = NULL; > @@ -110,7 +109,7 @@ int cmd_archive(int argc, > > setvbuf(stderr, NULL, _IOLBF, BUFSIZ); > > - ret = write_archive(argc, argv, prefix, the_repository, output, 0); > + ret = write_archive(argc, argv, prefix, repo, output, 0); Exactly the same comment applies here as [3/4]