|
1 | | -#define USE_THE_REPOSITORY_VARIABLE |
2 | 1 | #include "builtin.h" |
3 | 2 | #include "config.h" |
4 | 3 | #include "hex.h" |
@@ -151,7 +150,7 @@ static int send_pack_config(const char *k, const char *v, |
151 | 150 | int cmd_send_pack(int argc, |
152 | 151 | const char **argv, |
153 | 152 | const char *prefix, |
154 | | - struct repository *repo UNUSED) |
| 153 | + struct repository *repo) |
155 | 154 | { |
156 | 155 | struct refspec rs = REFSPEC_INIT_PUSH; |
157 | 156 | const char *remote_name = NULL; |
@@ -212,7 +211,7 @@ int cmd_send_pack(int argc, |
212 | 211 | OPT_END() |
213 | 212 | }; |
214 | 213 |
|
215 | | - git_config(send_pack_config, NULL); |
| 214 | + repo_config(repo, send_pack_config, NULL); |
216 | 215 | argc = parse_options(argc, argv, prefix, options, send_pack_usage, 0); |
217 | 216 | if (argc > 0) { |
218 | 217 | dest = argv[0]; |
@@ -317,7 +316,7 @@ int cmd_send_pack(int argc, |
317 | 316 | set_ref_status_for_push(remote_refs, args.send_mirror, |
318 | 317 | args.force_update); |
319 | 318 |
|
320 | | - ret = send_pack(the_repository, &args, fd, conn, remote_refs, &extra_have); |
| 319 | + ret = send_pack(repo, &args, fd, conn, remote_refs, &extra_have); |
321 | 320 |
|
322 | 321 | if (helper_status) |
323 | 322 | print_helper_status(remote_refs); |
|
0 commit comments