From: René Scharfe Date: Tue, 14 Jul 2026 17:59:53 +0000 (+0200) Subject: refs/packed: use repo_create_tempfile() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8432a4dee1c1206730c3e6bc5845c32272330bec;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/refs/packed-backend.c b/refs/packed-backend.c index 0acde48c45..7c4e8aca87 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -1379,7 +1379,7 @@ static enum ref_transaction_error write_with_updates(struct packed_ref_store *re packed_refs_path = get_locked_file_path(&refs->lock); strbuf_addf(&sb, "%s.new", packed_refs_path); free(packed_refs_path); - refs->tempfile = create_tempfile(sb.buf); + refs->tempfile = repo_create_tempfile(refs->base.repo, sb.buf); if (!refs->tempfile) { strbuf_addf(err, "unable to create file %s: %s", sb.buf, strerror(errno));