[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org b3660cf135 7/9: * testing/lisp/test-org-attach-git.
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org b3660cf135 7/9: * testing/lisp/test-org-attach-git.el: Avoid using global git config |
Date: |
Fri, 18 Aug 2023 06:58:29 -0400 (EDT) |
branch: externals/org
commit b3660cf1351e9ffeb7dc127f53a82171e89e155c
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
* testing/lisp/test-org-attach-git.el: Avoid using global git config
(test-org-attach-git/with-annex): Disable global git config during
testing.
---
testing/lisp/test-org-attach-git.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/testing/lisp/test-org-attach-git.el
b/testing/lisp/test-org-attach-git.el
index cc2a1dc627..e8b41fe8ce 100644
--- a/testing/lisp/test-org-attach-git.el
+++ b/testing/lisp/test-org-attach-git.el
@@ -28,9 +28,16 @@
(unwind-protect
(let ((default-directory tmpdir)
(org-attach-id-dir tmpdir))
- (shell-command "git init")
- (shell-command "git annex init")
- ,@body))))
+ ;; Ignore global git config.
+ (with-environment-variables
+ (("GIT_CONFIG_GLOBAL" (concat tmpdir ".global-config"))
+ ("GIT_CONFIG_SYSTEM" ""))
+ ;; Otherwise, some git operations may err.
+ (shell-command "git config --global user.email
\"john.doe@example.com\"")
+ (shell-command "git config --global user.name \"John Doe\"")
+ (shell-command "git init")
+ (shell-command "git annex init")
+ ,@body)))))
(ert-deftest test-org-attach-git/use-annex ()
(test-org-attach-git/with-annex
- [elpa] externals/org updated (d0c7cd48eb -> 83fd03fb6d), ELPA Syncer, 2023/08/18
- [elpa] externals/org 83fd03fb6d 9/9: org-attach: Fix when called from agenda, ELPA Syncer, 2023/08/18
- [elpa] externals/org 3ec0933122 4/9: Fix Emacs 27 test failure, ELPA Syncer, 2023/08/18
- [elpa] externals/org 3b49db8755 1/9: Revert "Prefer `string-search' when matching exact strings", ELPA Syncer, 2023/08/18
- [elpa] externals/org 9e40208547 2/9: test-org-agenda/todo-selector: Remove stray `message' call, ELPA Syncer, 2023/08/18
- [elpa] externals/org 2eb4fd8900 6/9: lisp/ox-latex.el: Add the `:literal' attribute to verse block., ELPA Syncer, 2023/08/18
- [elpa] externals/org b3660cf135 7/9: * testing/lisp/test-org-attach-git.el: Avoid using global git config,
ELPA Syncer <=
- [elpa] externals/org f1359546ad 5/9: org-element-at-point: Throw an error when not in org-mode, ELPA Syncer, 2023/08/18
- [elpa] externals/org 79aa149143 8/9: org-babel-map-executable: Describe header arg in the docstring, ELPA Syncer, 2023/08/18
- [elpa] externals/org 933d282881 3/9: Fix Emacs 27 false-positive warnings, ELPA Syncer, 2023/08/18