don't configure smudge filter in bare repo

Pointless to do it there.

Also, the git status call would fail in such a repo.
This commit is contained in:
Joey Hess 2018-08-29 09:16:50 -04:00
parent c565340adc
commit 2b0cc71fbf
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -14,7 +14,7 @@ import qualified Git.Command
import Config
configureSmudgeFilter :: Annex ()
configureSmudgeFilter = do
configureSmudgeFilter = unlessM (fromRepo Git.repoIsLocalBare) $
-- If this is run in a newly cloned repository, git may not have
-- cached file information in the index yet, and so after
-- configuring the clean filter, the next git status would want to