Commit 3a5f02d8 authored by Duncan Coutts's avatar Duncan Coutts Committed by Alexis Williams
Browse files

Try to fix the VCS tests: git commit on windows

Needs extra (fake) config to be supplied on the command line otherwise
it complains it doesn't know the author name or email.
parent 1e998287
......@@ -624,8 +624,10 @@ vcsTestDriverGit verbosity vcs repoRoot =
git ["add", filename]
, vcsCommitChanges = \_state -> do
git $ ["commit", "--all", "--message=a patch",
"--author=Author <author@example.com>"] ++ verboseArg
git $ [ "-c", "user.name", "A", "-c", "user.email", "a@example.com"
, "commit", "--all", "--message=a patch"
, "--author=A <a@example.com>"
] ++ verboseArg
commit <- git' ["log", "--format=%H", "-1"]
let commit' = takeWhile (not . isSpace) commit
return (Just commit')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment