summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-10 12:34:29 -0600
committerGravatar Joey Hess <joey@kitenet.net>2012-07-10 12:34:29 -0600
commitbafc50e05e098234d2d22886085d9844fc763e0e (patch)
tree13ec024086389751a6adf9edec4afbbc2d49e2ef /Build
parentd76bafb2e6d49f862ae335949ae1d4e0f9546431 (diff)
better git version determination
Diffstat (limited to 'Build')
-rw-r--r--Build/Configure.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/Configure.hs b/Build/Configure.hs
index 24743bf61..cf6623b22 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