From ef28b3fef7e236d8c27ce35308c0e37ece58d20c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 14 Dec 2011 15:56:11 -0400 Subject: split out Git/Command.hs --- Command/Uninit.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Command/Uninit.hs') diff --git a/Command/Uninit.hs b/Command/Uninit.hs index 48f5b1ac1..fc6f0cc27 100644 --- a/Command/Uninit.hs +++ b/Command/Uninit.hs @@ -12,6 +12,7 @@ import qualified Data.ByteString.Lazy.Char8 as B import Common.Annex import Command import qualified Git +import qualified Git.Command import qualified Annex import qualified Command.Unannex import Init @@ -29,7 +30,7 @@ check = do "cannot uninit when the " ++ show b ++ " branch is checked out" where current_branch = Git.Ref . head . lines . B.unpack <$> revhead - revhead = inRepo $ Git.pipeRead + revhead = inRepo $ Git.Command.pipeRead [Params "rev-parse --abbrev-ref HEAD"] seek :: [CommandSeek] @@ -57,5 +58,6 @@ cleanup = do liftIO $ removeDirectoryRecursive annexdir -- avoid normal shutdown saveState - inRepo $ Git.run "branch" [Param "-D", Param $ show Annex.Branch.name] + inRepo $ Git.Command.run "branch" + [Param "-D", Param $ show Annex.Branch.name] liftIO exitSuccess -- cgit v1.2.3