mirror of
https://github.com/git/git.git
synced 2026-08-09 01:21:47 +00:00
Merge branch 'ps/copy-wo-the-repository'
The copy_file() and copy_file_with_time() functions have been refactored to take a repository parameter, allowing the removal of the implicit dependency on the global 'the_repository' variable in 'copy.c'. * ps/copy-wo-the-repository: copy: drop dependency on `the_repository`
This commit is contained in:
@@ -1739,7 +1739,7 @@ static int files_copy_or_rename_ref(struct ref_store *ref_store,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (copy && log && copy_file(tmp_renamed_log.buf, sb_oldref.buf, 0644)) {
|
||||
if (copy && log && copy_file(refs->base.repo, tmp_renamed_log.buf, sb_oldref.buf, 0644)) {
|
||||
ret = error("unable to copy logfile logs/%s to logs/"TMP_RENAMED_LOG": %s",
|
||||
oldrefname, strerror(errno));
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user