We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e35fe65 commit 17fdd01Copy full SHA for 17fdd01
tests/magit-tests.el
@@ -11,12 +11,14 @@
11
12
(defmacro with-temp-git-repo (repo &rest body)
13
(declare (indent 1) (debug t))
14
- `(let ((,repo (make-temp-file "tmp_git" t)))
+ `(let* ((,repo (make-temp-file "tmp_git" t))
15
+ (default-directory (concat ,repo "/")))
16
(unwind-protect
17
(progn
18
(magit-init repo)
19
,@body)
- (delete-directory ,repo t))))
20
+ (delete-directory ,repo t)
21
+ )))
22
23
(defun magit-tests-section-has-item-title (title &optional section-path)
24
(let ((children (magit-section-children
0 commit comments