From 8e45b0f77bb7f4dbf7572b126f2959afc63d5ce9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 19 Aug 2014 15:23:29 -0400 Subject: warnings --- src/wrapper.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/wrapper.hs') diff --git a/src/wrapper.hs b/src/wrapper.hs index 7f681641..f323a541 100644 --- a/src/wrapper.hs +++ b/src/wrapper.hs @@ -18,7 +18,6 @@ import Utility.UserInfo import Utility.Monad import Utility.Process import Utility.SafeCommand -import Utility.Directory import Utility.Exception import Control.Monad @@ -64,11 +63,11 @@ wrapper args propellordir propellorbin = do disthead = propellordir "head" checkRepo = whenM (doesFileExist disthead) $ do - head <- readFile disthead + headrev <- readFile disthead changeWorkingDirectory propellordir headknown <- catchMaybeIO $ withQuietOutput createProcessSuccess $ - proc "git" ["log", head] + proc "git" ["log", headrev] when (headknown == Nothing) warnoutofdate warnoutofdate = do -- cgit v1.2.3