include git-annex-shell back in
Also pushed ConfigKey down into the Git modules, which is the bulk of the changes.
This commit is contained in:
parent
65b88a0b99
commit
f3047d7186
26 changed files with 101 additions and 82 deletions
|
@ -53,6 +53,7 @@ import Annex.Content
|
|||
import Messages.Progress
|
||||
import qualified Git
|
||||
import qualified Git.Construct
|
||||
import Git.Types
|
||||
|
||||
import qualified Data.ByteString as S
|
||||
import qualified Data.ByteString.Lazy as L
|
||||
|
@ -70,7 +71,9 @@ findSpecialRemotes s = do
|
|||
remotepairs = M.toList . M.filterWithKey match
|
||||
construct (k,_) = Git.Construct.remoteNamedFromKey k
|
||||
(pure Git.Construct.fromUnknown)
|
||||
match k _ = "remote." `S.isPrefixOf` k && (".annex-" <> encodeBS' s) `S.isSuffixOf` k
|
||||
match (ConfigKey k) _ =
|
||||
"remote." `S.isPrefixOf` k
|
||||
&& (".annex-" <> encodeBS' s) `S.isSuffixOf` k
|
||||
|
||||
{- Sets up configuration for a special remote in .git/config. -}
|
||||
gitConfigSpecialRemote :: UUID -> RemoteConfig -> [(String, String)] -> Annex ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue