aboutsummaryrefslogtreecommitdiff
path: root/RemoteDaemon/Common.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-06-02 16:34:52 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-06-02 16:34:52 -0400
commit0ff2732d9583fd70d75cd8e365587803a7ac75ed (patch)
tree8dde2949bfd29ea6adcf2a40f992fe6970872ebd /RemoteDaemon/Common.hs
parentb986b85cec119403c1a62fc268e26ff948de9fca (diff)
make LocalRepo a newtype
Diffstat (limited to 'RemoteDaemon/Common.hs')
-rw-r--r--RemoteDaemon/Common.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/RemoteDaemon/Common.hs b/RemoteDaemon/Common.hs
index 9efc0c4a0..982a84b43 100644
--- a/RemoteDaemon/Common.hs
+++ b/RemoteDaemon/Common.hs
@@ -30,7 +30,7 @@ liftAnnex (TransportHandle _ annexstate) a = do
return r
inLocalRepo :: TransportHandle -> (Git.Repo -> IO a) -> IO a
-inLocalRepo (TransportHandle g _) a = a g
+inLocalRepo (TransportHandle (LocalRepo g) _) a = a g
-- Check if any of the shas are actally new in the local git repo,
-- to avoid unnecessary fetching.