From f8aadbfb9b39234e05fd70ad62c6703fc6fe3226 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 23 Dec 2020 14:31:14 -0400 Subject: [PATCH] avoid grafting in an imported tree when it's not changed This just avoids some churn in the git-annex branch. --- Logs/Export.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Logs/Export.hs b/Logs/Export.hs index a8d53debdf..aab1f0445c 100644 --- a/Logs/Export.hs +++ b/Logs/Export.hs @@ -148,7 +148,8 @@ recordExportUnderway remoteuuid ec = do -- interrupted exports. recordExport :: UUID -> Git.Ref -> ExportChange -> Annex () recordExport remoteuuid tree ec = do - recordExportTreeish tree + when (oldTreeish ec /= [tree]) $ + recordExportTreeish tree recordExportUnderway remoteuuid ec parseExportLog :: L.ByteString -> MapLog ExportParticipants Exported -- 2.30.2