graft in imported tree to avoid gc
Fix a bug that could prevent getting files from an importtree=yes remote, because the imported tree was allowed to be garbage collected.
This commit is contained in:
parent
c6e693b25d
commit
7916fc98a3
5 changed files with 58 additions and 34 deletions
|
@ -161,7 +161,7 @@ recordImportTree remote importtreeconfig importable = do
|
|||
|
||||
updateexportlog importedtree = do
|
||||
oldexport <- getExport (Remote.uuid remote)
|
||||
recordExport (Remote.uuid remote) $ ExportChange
|
||||
recordExport (Remote.uuid remote) importedtree $ ExportChange
|
||||
{ oldTreeish = exportedTreeishes oldexport
|
||||
, newTreeish = importedtree
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue