avoid using renameExport on import remotes

This commit is contained in:
Joey Hess 2019-03-05 14:57:48 -04:00
parent 9df9a3f82b
commit fd2a1aaa17
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 6 additions and 15 deletions

View file

@ -173,6 +173,12 @@ adjustExportImport r = case M.lookup "exporttree" (config r) of
removeExportWithContentIdentifier (importActions r') k loc
=<< getknowncids db loc
, removeExportDirectory = removeExportDirectoryWhenEmpty (importActions r')
-- renameExport is optional, and the
-- remote's implementation may
-- lose modifications to the file
-- (by eg copying and then deleting)
-- so don't use it
, renameExport = \_ _ _ -> return False
}
}