From 6e327fa1a3de1801714cad63dcb145d49bcfb008 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 18 Nov 2014 20:38:11 -0400 Subject: [PATCH] propellor spin --- src/Propellor/CmdLine.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs index b3f7f70..6552b12 100644 --- a/src/Propellor/CmdLine.hs +++ b/src/Propellor/CmdLine.hs @@ -57,6 +57,7 @@ processCmdLine = go =<< getArgs go ("--continue":s:[]) = case readish s of Just cmdline -> return $ Continue cmdline Nothing -> errorMessage $ "--continue serialization failure (" ++ s ++ ")" + go ("--gitpush":fin:fout:_) = return $ GitPush (Prelude.read fin) (Prelude.read fout) go (h:[]) | "--" `isPrefixOf` h = usageError [h] | otherwise = return $ Run h @@ -233,7 +234,7 @@ update = do [ Param "pull" , Param "--progress" , Param "--upload-pack" - , Param $ "./propellor --continue " ++ show (GitPush hin hout) + , Param $ "./propellor --gitpush " ++ show hin ++ " " ++ show hout , Param "." ]