diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-10 12:34:29 -0600 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-10 12:34:29 -0600 |
commit | bafc50e05e098234d2d22886085d9844fc763e0e (patch) | |
tree | 13ec024086389751a6adf9edec4afbbc2d49e2ef /Build | |
parent | d76bafb2e6d49f862ae335949ae1d4e0f9546431 (diff) |
better git version determination
Diffstat (limited to 'Build')
-rw-r--r-- | Build/Configure.hs | 2 |
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 |