mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-23 21:35:26 +03:00
core: Replace pack superindex via rename() rather than truncating
This helps allow cloning repositories via "cp -al".
This commit is contained in:
parent
2fbf864251
commit
102180c5f2
@ -69,7 +69,8 @@ ot_util_variant_save (GFile *dest,
|
||||
ot_lobj GOutputStream *out = NULL;
|
||||
gsize bytes_written;
|
||||
|
||||
out = (GOutputStream*)g_file_replace (dest, NULL, 0, FALSE, cancellable, error);
|
||||
out = (GOutputStream*)g_file_replace (dest, NULL, G_FILE_CREATE_REPLACE_DESTINATION, FALSE,
|
||||
cancellable, error);
|
||||
if (!out)
|
||||
goto out;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user