mirror of
https://github.com/git/git.git
synced 2026-08-08 17:11:48 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
8aad1dfc00
commit
8432a4dee1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user