summaryrefslogtreecommitdiff
path: root/Annex/Fixup.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/Fixup.hs')
-rw-r--r--Annex/Fixup.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Annex/Fixup.hs b/Annex/Fixup.hs
index bb35454ee..07caa44df 100644
--- a/Annex/Fixup.hs
+++ b/Annex/Fixup.hs
@@ -27,10 +27,11 @@ import qualified Data.Map as M
fixupRepo :: Repo -> GitConfig -> IO Repo
fixupRepo r c = do
- r' <- fixupSubmodule r c
+ let r' = r { gitGlobalOpts = gitGlobalOpts r ++ [Param "--literal-pathspecs"] }
+ r'' <- fixupSubmodule r' c
if annexDirect c
- then fixupDirect r'
- else return r'
+ then fixupDirect r''
+ else return r''
{- Direct mode repos have core.bare=true, but are not really bare.
- Fix up the Repo to be a non-bare repo, and arrange for git commands