diff options
author | Joey Hess <joey@kitenet.net> | 2013-09-25 23:19:01 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-09-25 23:19:01 -0400 |
commit | f32cb2cf1576db1395f77bd5f7f0c0a3e86c1334 (patch) | |
tree | 7d61d584b86f263659c96d21e5aac235f6abe239 /Remote/GCrypt.hs | |
parent | 9559613df8bb914b5034ba0f1aafd26884e5d9e7 (diff) |
hlint
Diffstat (limited to 'Remote/GCrypt.hs')
-rw-r--r-- | Remote/GCrypt.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Remote/GCrypt.hs b/Remote/GCrypt.hs index 5e8102652..a99f2186a 100644 --- a/Remote/GCrypt.hs +++ b/Remote/GCrypt.hs @@ -76,7 +76,7 @@ gen gcryptr u c gc = do -- correctly. resetup gcryptid r = do let u' = genUUIDInNameSpace gCryptNameSpace gcryptid - v <- (M.lookup u' <$> readRemoteLog) + v <- M.lookup u' <$> readRemoteLog case (Git.remoteName gcryptr, v) of (Just remotename, Just c') -> do setGcryptEncryption c' remotename @@ -186,14 +186,14 @@ gCryptSetup mu c = go $ M.lookup "gitrepo" c void $ inRepo $ Git.Command.runBool [ Param "push" , Param remotename - , Param $ show $ Annex.Branch.fullname + , Param $ show Annex.Branch.fullname ] g <- inRepo Git.Config.reRead case Git.GCrypt.remoteRepoId g (Just remotename) of Nothing -> error "unable to determine gcrypt-id of remote" Just gcryptid -> do let u = genUUIDInNameSpace gCryptNameSpace gcryptid - if Just u == mu || mu == Nothing + if Just u == mu || isNothing mu then do method <- setupRepo gcryptid =<< inRepo (Git.Construct.fromRemoteLocation gitrepo) gitConfigSpecialRemote u c' "gcrypt" (fromAccessMethod method) @@ -246,7 +246,7 @@ setupRepo gcryptid r ok <- liftIO $ rsync $ rsynctransport ++ [ Params "--recursive" , Param $ tmp ++ "/" - , Param $ rsyncurl + , Param rsyncurl ] unless ok $ error "Failed to connect to remote to set it up." |