summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-06-03 13:02:33 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-06-03 13:02:33 -0400
commit2ec66372940a29de91e3650651362ae862120ea4 (patch)
tree8e7255100c98c7806356827a1e01d4dd706e3833 /Test.hs
parentf0e8f359fe793aa4922ba393676fe8a3db869d22 (diff)
two more breakages introduced when removing the Params constructor
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Test.hs b/Test.hs
index 85c9de9a6..607e41d09 100644
--- a/Test.hs
+++ b/Test.hs
@@ -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"