refs/packed: use repo_create_tempfile()

Apply the config setting core.sharedRepository from the ref store base repository at hand instead of from the_repository. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Jul 14, 2026 at 19:59 UTC 8432a4dee1c1206730c3e6bc5845c32272330bec
1 file changed +1 -1
refs/packed-backend.c
+1 -1
@@ -1379,7 +1379,7 @@ static enum ref_transaction_error write_with_updates(struct packed_ref_store *re
1379 packed_refs_path = get_locked_file_path(&refs->lock);
1380 strbuf_addf(&sb, "%s.new", packed_refs_path);
1381 free(packed_refs_path);
1382 - refs->tempfile = create_tempfile(sb.buf);
1382 + refs->tempfile = repo_create_tempfile(refs->base.repo, sb.buf);
1383 if (!refs->tempfile) {
1384 strbuf_addf(err, "unable to create file %s: %s",
1385 sb.buf, strerror(errno));