better git version determination

This commit is contained in:
Joey Hess 2012-07-10 12:34:29 -06:00
parent d76bafb2e6
commit bafc50e05e

View file

@ -72,7 +72,7 @@ getVersionString = do
getGitVersion :: Test getGitVersion :: Test
getGitVersion = do getGitVersion = do
(_, s) <- pipeFrom "git" ["--version"] (_, 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) return $ Config "gitversion" (StringConfig version)
getSshConnectionCaching :: Test getSshConnectionCaching :: Test