|
| 1 | +#define USE_THE_REPOSITORY_VARIABLE |
| 2 | + |
1 | 3 | #include "git-compat-util.h"
|
2 | 4 | #include "environment.h"
|
3 | 5 | #include "gettext.h"
|
@@ -287,7 +289,7 @@ char *write_rev_file_order(const struct git_hash_algo *hash_algo,
|
287 | 289 | write_rev_index_positions(f, pack_order, nr_objects);
|
288 | 290 | write_rev_trailer(hash_algo, f, hash);
|
289 | 291 |
|
290 |
| - if (adjust_shared_perm(path) < 0) |
| 292 | + if (adjust_shared_perm(the_repository, path) < 0) |
291 | 293 | die(_("failed to make %s readable"), path);
|
292 | 294 |
|
293 | 295 | finalize_hashfile(f, NULL, FSYNC_COMPONENT_PACK_METADATA,
|
@@ -350,7 +352,7 @@ static char *write_mtimes_file(const struct git_hash_algo *hash_algo,
|
350 | 352 | write_mtimes_objects(f, to_pack, objects, nr_objects);
|
351 | 353 | write_mtimes_trailer(hash_algo, f, hash);
|
352 | 354 |
|
353 |
| - if (adjust_shared_perm(mtimes_name) < 0) |
| 355 | + if (adjust_shared_perm(the_repository, mtimes_name) < 0) |
354 | 356 | die(_("failed to make %s readable"), mtimes_name);
|
355 | 357 |
|
356 | 358 | finalize_hashfile(f, NULL, FSYNC_COMPONENT_PACK_METADATA,
|
@@ -565,12 +567,12 @@ void stage_tmp_packfiles(const struct git_hash_algo *hash_algo,
|
565 | 567 | char *rev_tmp_name = NULL;
|
566 | 568 | char *mtimes_tmp_name = NULL;
|
567 | 569 |
|
568 |
| - if (adjust_shared_perm(pack_tmp_name)) |
| 570 | + if (adjust_shared_perm(the_repository, pack_tmp_name)) |
569 | 571 | die_errno("unable to make temporary pack file readable");
|
570 | 572 |
|
571 | 573 | *idx_tmp_name = (char *)write_idx_file(hash_algo, NULL, written_list,
|
572 | 574 | nr_written, pack_idx_opts, hash);
|
573 |
| - if (adjust_shared_perm(*idx_tmp_name)) |
| 575 | + if (adjust_shared_perm(the_repository, *idx_tmp_name)) |
574 | 576 | die_errno("unable to make temporary index file readable");
|
575 | 577 |
|
576 | 578 | rev_tmp_name = write_rev_file(hash_algo, NULL, written_list, nr_written,
|
|
0 commit comments