From 2b0cc71fbfd9993ceab1a9af78260dbd7409968e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 29 Aug 2018 09:16:50 -0400 Subject: [PATCH] don't configure smudge filter in bare repo Pointless to do it there. Also, the git status call would fail in such a repo. --- Config/Smudge.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Config/Smudge.hs b/Config/Smudge.hs index 26ac8c2062..0b129240b6 100644 --- a/Config/Smudge.hs +++ b/Config/Smudge.hs @@ -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