From 73d1f889c0b6d63fefcc3296bcd0402b1caed419 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 27 Oct 2013 15:38:59 -0400 Subject: assistant: Support repairing git remotes that are locally accessible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (eg, on removable drives) gcrypt remotes are not yet handled. This commit was sponsored by Sören Brunk. --- Assistant/Alert.hs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Assistant/Alert.hs') diff --git a/Assistant/Alert.hs b/Assistant/Alert.hs index 7e47e8396..9e248571d 100644 --- a/Assistant/Alert.hs +++ b/Assistant/Alert.hs @@ -177,6 +177,12 @@ fsckAlert button n = baseActivityAlert brokenRepositoryAlert :: AlertButton -> Alert brokenRepositoryAlert = errorAlert "Serious problems have been detected with your repository. This needs your immediate attention!" +repairingAlert :: String -> Alert +repairingAlert repodesc = activityAlert Nothing + [ Tensed "Attempting to repair" "Repaired" + , UnTensed $ T.pack repodesc + ] + pairingAlert :: AlertButton -> Alert pairingAlert button = baseActivityAlert { alertData = [ UnTensed "Pairing in progress" ] -- cgit v1.2.3