{- Sqlite database of information about Keys
-
- - Copyright 2015-2022 Joey Hess <id@joeyh.name>
+ - Copyright 2015-2025 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU AGPL version 3 or higher.
-}
- is an associated file.
-}
reconcileStaged :: Bool -> H.DbQueue -> Annex DbTablesChanged
-reconcileStaged dbisnew qh = ifM isBareRepo
+reconcileStaged dbisnew qh = ifM notneeded
( return mempty
, do
gitindex <- inRepo currentIndexFile
getindextree = inRepo $ \r -> writeTreeQuiet $ r
{ gitGlobalOpts = gitGlobalOpts r ++ bypassSmudgeConfig }
+ notneeded = isBareRepo
+ -- Avoid doing anything when run by the
+ -- smudge clean filter. When that happens in a conflicted
+ -- merge situation, running git write-tree
+ -- here would cause git merge to fail with an internal
+ -- error. This works around around that bug in git.
+ <||> Annex.getState Annex.insmudgecleanfilter
+
diff old new =
-- Avoid running smudge clean filter, since we want the
-- raw output, and it would block trying to access the