From bafc50e05e098234d2d22886085d9844fc763e0e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 10 Jul 2012 12:34:29 -0600 Subject: [PATCH] better git version determination --- Build/Configure.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/Configure.hs b/Build/Configure.hs index 24743bf618..cf6623b226 100644 --- a/Build/Configure.hs +++ b/Build/Configure.hs @@ -72,7 +72,7 @@ getVersionString = do getGitVersion :: Test getGitVersion = do (_, s) <- pipeFrom "git" ["--version"] - let version = last $ words $ head $ lines s + let version = unwords $ drop 2 $ words $ head $ lines s return $ Config "gitversion" (StringConfig version) getSshConnectionCaching :: Test