diff options
author | 2015-06-03 13:02:33 -0400 | |
---|---|---|
committer | 2015-06-03 13:02:33 -0400 | |
commit | 2ec66372940a29de91e3650651362ae862120ea4 (patch) | |
tree | 8e7255100c98c7806356827a1e01d4dd706e3833 /Test.hs | |
parent | f0e8f359fe793aa4922ba393676fe8a3db869d22 (diff) |
two more breakages introduced when removing the Params constructor
Diffstat (limited to 'Test.hs')
-rw-r--r-- | Test.hs | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1478,8 +1478,14 @@ clonerepo :: FilePath -> FilePath -> Bool -> IO FilePath clonerepo old new bare = do cleanup new ensuretmpdir - let b = if bare then " --bare" else "" - boolSystem "git" [Param "clone", Param "-q", Param b, File old, File new] @? "git clone failed" + let cloneparams = catMaybes + [ Just $ Param "clone" + , Just $ Param "-q" + , if bare then Just (Param "--bare") else Nothing + , Just $ File old + , Just $ File new + ] + boolSystem "git" cloneparams @? "git clone failed" configrepo new indir new $ git_annex "init" ["-q", new] @? "git annex init failed" |