aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Eaton <zaimzet@gmail.com>2020-01-25 05:43:25 -0800
committerBozhidar Batsov <bozhidar@batsov.com>2020-01-25 15:43:25 +0200
commit7fa35124944c28be0e8c11448849e412ed3f2eb1 (patch)
tree3de88be87dd9fd1ac8da161bdf50e60d1ccb9e44 /test
parenta7c51da5d02e45ffff78093f3becb5527643a668 (diff)
[Fix #1475] Fix unignoring directories (#1485)
When using hybrid mode and unignoring files that are ignored by git, the settings in .projectile would not work. The arguments to internal function projectile-get-repo-ignored-directory were in the wrong order. So it would return nil instead of the desired list of git ignored files. The issue is caught by the projectile-add-unignored test. Co-authored-by: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/projectile-test.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/projectile-test.el b/test/projectile-test.el
index c64c543..c5cf90a 100644
--- a/test/projectile-test.el
+++ b/test/projectile-test.el
@@ -236,7 +236,7 @@ You'd normally combine this with `projectile-test-with-sandbox'."
(spy-on 'projectile-project-vcs :and-return-value 'git)
(spy-on 'projectile-get-repo-ignored-files :and-return-value '("path/unignored-file"))
(spy-on 'projectile-get-repo-ignored-directory :and-call-fake
- (lambda (project vcs dir)
+ (lambda (project dir vcs)
(list (concat dir "unignored-file"))))
(let ((projectile-globally-unignored-directories '("path")))
(expect (projectile-add-unignored nil nil '("file")) :to-equal '("file" "path/unignored-file"))