[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 55540a3: * test/lisp/vc/vc-tests.el (vc-test--version-diff): Git
From: |
Glenn Morris |
Subject: |
master 55540a3: * test/lisp/vc/vc-tests.el (vc-test--version-diff): Git env tweak. |
Date: |
Mon, 6 Sep 2021 22:13:28 -0400 (EDT) |
branch: master
commit 55540a3d89862689340aa75d1370c3e8151ee934
Author: A <rgm@gnu.org>
Commit: Glenn Morris <rgm@gnu.org>
* test/lisp/vc/vc-tests.el (vc-test--version-diff): Git env tweak.
---
test/lisp/vc/vc-tests.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/lisp/vc/vc-tests.el b/test/lisp/vc/vc-tests.el
index 4169a96..aa401a2 100644
--- a/test/lisp/vc/vc-tests.el
+++ b/test/lisp/vc/vc-tests.el
@@ -616,9 +616,17 @@ This checks also `vc-backend' and
`vc-responsible-backend'."
(setq tempdir (make-temp-file "vc-test--version-diff" t)
process-environment (cons (format "BZR_HOME=%s" tempdir)
process-environment)))
+ ;; git tries various approaches to guess a user name and email,
+ ;; which can fail depending on how the system is configured.
+ ;; Eg if the user account has no GECOS, git commit can fail with
+ ;; status 128 "fatal: empty ident name".
(when (memq backend '(Bzr Git))
(setq process-environment (cons "EMAIL=john@doe.ee"
process-environment)))
+ (if (eq backend 'Git)
+ (setq process-environment (append '("GIT_AUTHOR_NAME=A"
+ "GIT_COMMITTER_NAME=C")
+ process-environment)))
(unwind-protect
(progn
;; Cleanup.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 55540a3: * test/lisp/vc/vc-tests.el (vc-test--version-diff): Git env tweak.,
Glenn Morris <=