summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-01-06 14:50:15 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-01-06 14:50:15 -0400
commitbe7a95c7bcb4e78d267f56385ad0995c08395f3f (patch)
tree348d153d7a8ab54810fdbd9101cebeabf17f6ef6 /Annex.hs
parent27195fc7ecb70e185e9a78f8bd3d758bfe262a22 (diff)
try to avoid Windows MAX_PATH limit, by using \\?\ prefix on git repo path
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex.hs b/Annex.hs
index 82a378f79..7806a9129 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -187,7 +187,7 @@ newState c r = AnnexState
- Ensures the config is read, if it was not already. -}
new :: Git.Repo -> IO AnnexState
new r = do
- r' <- Git.Config.read r
+ r' <- Git.adjustPath <$> Git.Config.read r
let c = extractGitConfig r'
newState c <$> if annexDirect c then fixupDirect r' else return r'