summaryrefslogtreecommitdiff
path: root/P2P
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2019-12-09 13:49:05 -0400
committerJoey Hess <joeyh@joeyh.name>2019-12-09 15:07:21 -0400
commitbdec7fed9cae4fe5c3cbdf0ee2ee6ae8530bbc19 (patch)
treeb8ca2b1bc16170c616a7c8404fae22c0b859c235 /P2P
parenta7004375ec381b6b2f8ce114a5e24c764ef4fdfd (diff)
convert TopFilePath to use RawFilePath
Adds a dependency on filepath-bytestring, an as yet unreleased fork of filepath that operates on RawFilePath. Git.Repo also changed to use RawFilePath for the path to the repo. This does eliminate some RawFilePath -> FilePath -> RawFilePath conversions. And filepath-bytestring's </> is probably faster. But I don't expect a major performance improvement from this. This is mostly groundwork for making Annex.Location use RawFilePath, which will allow for a conversion-free pipleline.
Diffstat (limited to 'P2P')
-rw-r--r--P2P/IO.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/P2P/IO.hs b/P2P/IO.hs
index b079f8de84..3503386a8b 100644
--- a/P2P/IO.hs
+++ b/P2P/IO.hs
@@ -293,7 +293,7 @@ runRelayService conn runner service =
serviceproc = gitCreateProcess
[ Param cmd
- , File (repoPath (connRepo conn))
+ , File (fromRawFilePath (repoPath (connRepo conn)))
] (connRepo conn)
setup = do