scanAnnexedFiles in smudge --update
This makes git checkout and git merge hooks do the work to catch up with changes that they made to the tree. Rather than doing it at some later point when the user is not thinking about that past operation. Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
parent
c380687aa3
commit
13b9a288d3
5 changed files with 37 additions and 14 deletions
|
@ -37,7 +37,6 @@ import Annex.UUID
|
|||
import Annex.WorkTree
|
||||
import Annex.Fixup
|
||||
import Annex.Path
|
||||
import Annex.Concurrent
|
||||
import Config
|
||||
import Config.Files
|
||||
import Config.Smudge
|
||||
|
@ -134,8 +133,7 @@ initialize' mversion = checkInitializeAllowed $ do
|
|||
then configureSmudgeFilter
|
||||
else deconfigureSmudgeFilter
|
||||
unlessM isBareRepo $ do
|
||||
showSideActionAfter oneSecond "scanning for annexed files" $
|
||||
scanAnnexedFiles
|
||||
scanAnnexedFiles True
|
||||
hookWrite postCheckoutHook
|
||||
hookWrite postMergeHook
|
||||
AdjustedBranch.checkAdjustedClone >>= \case
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue