Fix vc-git test when no identities are configured
Reported by john muhl <jm@pub.pink>. * test/lisp/vc/vc-git-tests.el (vc-git-test--with-repo): Set some environment variables (lifted from vc-tests.el) to let 'git commit' compute dummy author and committer identities.
This commit is contained in:
parent
88355de602
commit
014cd00402
1 changed files with 9 additions and 2 deletions
|
@ -88,10 +88,17 @@
|
|||
|
||||
The current directory will be set to the top of that repository; NAME
|
||||
will be bound to that directory's file name. Once BODY exits, the
|
||||
directory will be deleted."
|
||||
directory will be deleted.
|
||||
|
||||
Some dummy environment variables will be set for the duration of BODY to
|
||||
allow 'git commit' to determine identities for authors and committers."
|
||||
(declare (indent 1))
|
||||
`(ert-with-temp-directory ,name
|
||||
(let ((default-directory ,name))
|
||||
(let ((default-directory ,name)
|
||||
(process-environment (append '("EMAIL=john@doe.ee"
|
||||
"GIT_AUTHOR_NAME=A"
|
||||
"GIT_COMMITTER_NAME=C")
|
||||
process-environment)))
|
||||
(vc-create-repo 'Git)
|
||||
,@body)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue