let's use words and unwords rather than split and intercalate " "
This commit is contained in:
parent
5ed67562f6
commit
553e9dc736
3 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ start key = ifM (inAnnex key)
|
||||||
where
|
where
|
||||||
go tmp = do
|
go tmp = do
|
||||||
(opts,_,_) <- getOpt Permute rsyncSafeOptions <$>
|
(opts,_,_) <- getOpt Permute rsyncSafeOptions <$>
|
||||||
maybe [] (split " ") <$> getField "RsyncOptions"
|
maybe [] words <$> getField "RsyncOptions"
|
||||||
ifM (liftIO $ rsyncServerReceive (map Param opts) tmp)
|
ifM (liftIO $ rsyncServerReceive (map Param opts) tmp)
|
||||||
( ifM (isJust <$> Fields.getField Fields.direct)
|
( ifM (isJust <$> Fields.getField Fields.direct)
|
||||||
( directcheck tmp
|
( directcheck tmp
|
||||||
|
|
|
@ -28,7 +28,7 @@ seek = [withKeys start]
|
||||||
start :: Key -> CommandStart
|
start :: Key -> CommandStart
|
||||||
start key = do
|
start key = do
|
||||||
(opts,_,_) <- getOpt Permute rsyncSafeOptions <$>
|
(opts,_,_) <- getOpt Permute rsyncSafeOptions <$>
|
||||||
maybe [] (split " ") <$> getField "RsyncOptions"
|
maybe [] words <$> getField "RsyncOptions"
|
||||||
ifM (inAnnex key)
|
ifM (inAnnex key)
|
||||||
( fieldTransfer Upload key $ \_p ->
|
( fieldTransfer Upload key $ \_p ->
|
||||||
sendAnnex key rollback $ liftIO . rsyncServerSend (map Param opts)
|
sendAnnex key rollback $ liftIO . rsyncServerSend (map Param opts)
|
||||||
|
|
|
@ -89,7 +89,7 @@ builtin cmd dir params = do
|
||||||
checkDirectory $ Just dir
|
checkDirectory $ Just dir
|
||||||
let (params', fieldparams, opts) = partitionParams params
|
let (params', fieldparams, opts) = partitionParams params
|
||||||
fields = filter checkField $ parseFields fieldparams
|
fields = filter checkField $ parseFields fieldparams
|
||||||
cmds' = map (newcmd $ intercalate " " opts) cmds
|
cmds' = map (newcmd $ unwords opts) cmds
|
||||||
dispatch False (cmd : params') cmds' options fields header $
|
dispatch False (cmd : params') cmds' options fields header $
|
||||||
Git.Construct.repoAbsPath dir >>= Git.Construct.fromAbsPath
|
Git.Construct.repoAbsPath dir >>= Git.Construct.fromAbsPath
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in a new issue