1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| | This patch fixes two of Magit's tests when used with Git 2.38.1. Git commit
a1d4f67c12 (transport: make `protocol.file.allow` be "user" by default) had
broken them, so this cherry-pick of Magit 36059e0b sets it "protocol.file.allow"
back to "always".
Author: Kyle Meyer <kyle@kyleam.com>
Added by: ( <paren@disroot.org>
diff --git a/t/magit-tests.el b/t/magit-tests.el
index 523cc519..bc556d17 100644
--- a/t/magit-tests.el
+++ b/t/magit-tests.el
@@ -24,7 +24,10 @@
(declare (indent 0) (debug t))
(let ((dir (make-symbol "dir")))
`(let ((,dir (file-name-as-directory (make-temp-file "magit-" t)))
- (process-environment process-environment))
+ (process-environment process-environment)
+ (magit-git-global-arguments
+ (nconc (list "-c" "protocol.file.allow=always")
+ magit-git-global-arguments)))
(push "GIT_AUTHOR_NAME=A U Thor" process-environment)
(push "GIT_AUTHOR_EMAIL=a.u.thor@example.com" process-environment)
(condition-case err
|