43909723b3
So far, handling connecting to git-annex-shell notifychanges, and pulling immediately when a change is pushed to a remote. A little bit buggy (crashes after the first pull), but it already works! This commit was sponsored by Mark Sheppard.
21 lines
475 B
Haskell
21 lines
475 B
Haskell
{- git-remote-daemon transports
|
|
-
|
|
- Copyright 2014 Joey Hess <joey@kitenet.net>
|
|
-
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
-}
|
|
|
|
module RemoteDaemon.Transport where
|
|
|
|
import RemoteDaemon.Types
|
|
import qualified RemoteDaemon.Transport.Ssh
|
|
|
|
import qualified Data.Map as M
|
|
|
|
-- Corresponds to uriScheme
|
|
type TransportScheme = String
|
|
|
|
remoteTransports :: M.Map TransportScheme Transport
|
|
remoteTransports = M.fromList
|
|
[ ("ssh:", RemoteDaemon.Transport.Ssh.transport)
|
|
]
|