mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 06:01:00 +01:00
Used Rsync for reverting state.
This commit is contained in:
parent
138973a6d5
commit
84d00db70b
5 changed files with 33 additions and 71 deletions
|
|
@ -1665,7 +1665,7 @@ void unShareStateTxn(const Transaction & txn, const Path & path, const bool bran
|
|||
|
||||
//Copy if necessary
|
||||
if(branch){
|
||||
rsyncPaths(sharedWithOldPath, path);
|
||||
rsyncPaths(sharedWithOldPath, path, true);
|
||||
}
|
||||
|
||||
//Restore the latest snapshot (non-recursive) made on this statepath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue